Hugo工具站

martial-paper — Hugo 工具站模板

作者 pedrodude

martial-paper 是一个面向 Hugo 静态网站生成器的极简纸质风格主题,仓库采用 MIT 许可,最后更新于 2018 年。

看看你的网站会是什么样

浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。

1 个预览视图
作者提供的预览
作者提供的预览首屏预览

来自项目 README 的原始预览。

目前有 1 张原始预览,可打开完整图片查看设计细节。

截图用于了解视觉与布局,交互效果请以实际项目为准。

采集于 2026-10-11查看来源

值得关注的模板亮点

从已有项目资料中,快速了解它的特点。

01

面向 Hugo 静态网站生成器的极简纸质风格主题

02

通过 config.toml 的 params 配置 about 链接、作者、版权声明、描述、副标题与标语

03

页面 frontmatter 支持 streamtitle、timeless、suppress、martialpaperlastmod 等扩展字段

04

CSS 改编自 HTML5 Boilerplate,主要使用 flexbox 定位

05

默认使用 Google Fonts 托管的 Montserrat 字体,依赖 Normalize.css 精简版

06

仓库采用 MIT 许可,最后更新于 2018 年

模板详细介绍

martial-paper 是 pedrodude 为 Hugo 静态网站生成器编写的主题,定位为极简、智能的纸质风格。主题的视觉灵感来自直角造型以及《罗纳河上的星夜》的默认配色。README 提到曾有一个使用该主题的线上站点 socratic.space,但已下线,目前可参考的只有仓库中的一张截图。

主题通过 config.toml 的 params 提供站点级配置,包括 aboutpage、author、copyrightstatement、description、siteclass 和 tagline;其中 siteclass 和 tagline 为可选,分别用于在首页显示对比色副标题和标语。若要在首页加入引导文字,需要在 content 目录创建 frontmatter 中带 timeless = "indexintro" 和 title = "indexintro" 的 Markdown 文档,README 提示该内容不宜过长,以免把首页索引推得太靠下。

页面级配置在 archetype 中扩展了若干字段:streamtitle 用于在单页显示对比色副标题;timeless 设为 true 时隐藏文章摘要与标题中的日期;suppress 设为 true 可将页面从首页索引中隐藏;martialpaperlastmod 接受 YYYYMMDD 格式,用于在页脚下方显示最后修改日期,该值不会自动更新或格式化,未设置时显示创建日期。

样式方面,CSS 改编自 HTML5 Boilerplate,主要使用 flexbox 进行定位,并做了配色调整;字体上几何无衬线体、等宽字体甚至粗衬线体都可以搭配。默认配置使用 Google Fonts 托管的 Montserrat 字体。主题依赖还包括 Normalize.css 的精简版本。仓库最后更新于 2018 年,README 未提供在线演示,安装步骤指向 Hugo 官方的主题安装说明。

Hugo工具站

适合你的项目吗?

适用场景

  • 为 Hugo 站点寻找极简纸质风格主题的个人博客或文档站
  • 需要按页面控制日期显示、首页索引隐藏或最后修改日期的内容站点
  • 希望基于 HTML5 Boilerplate 与 flexbox 自行调整 CSS 配色的 Hugo 项目

适合人群

  • 使用 Hugo 并偏好极简纸质视觉风格的站点作者
  • 愿意手动编辑 config.toml 与页面 frontmatter 完成配置的用户
  • 接受主题最后更新于 2018 年、需要自行核对兼容性的开发者

上手与定制指南

结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。

  1. 1

    安装步骤参考 Hugo 官方主题安装说明,将主题放入 themes 目录并在配置中设置 theme = "martial-paper"

  2. 2

    修改 config.toml 中所有以 TK 开头的设置项并删除 TK 前缀,包括 baseurl、title 以及 params 下的 aboutpage、author、copyrightstatement、description 等

  3. 3

    aboutpage 必须填写 about 页面文件名去掉扩展名后的精确名称,否则头部 about 链接无法正常工作

  4. 4

    如需首页引导文字,在 content 目录创建 frontmatter 含 timeless = "indexintro" 和 title = "indexintro" 的 Markdown 文档

  5. 5

    martialpaperlastmod 需手动填写 YYYYMMDD 格式,不会自动更新或格式化

查看仓库使用说明

授权与来源资料

使用条件与限制

免费使用 · 保留许可声明

本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。

使用时需要遵守

  • 允许免费使用、修改、商用和分发该版本代码。
  • 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
  • 代码按现状提供;担保与责任限制以原许可证及适用法律为准。

额外费用与待核对事项

  • 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
  • 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
  • 默认配置通过 Google Fonts 加载 Montserrat 字体,属于外部服务依赖;若在离线或受限网络环境使用,需自行替换字体或托管字体文件。
  • 主题 CSS 改编自 HTML5 Boilerplate,并包含 Normalize.css 精简版,这些第三方代码可能带有各自的许可条款,需自行核对。
  • README 中原有的在线演示站点已下线,目前没有可访问的在线演示,只能参考仓库内截图。
  • martialpaperlastmod 需手动填写 YYYYMMDD 格式,不会自动更新也不会自动格式化,未设置时显示创建日期。
查看原文依据

Permission is hereby granted, free of charge

许可证原文

The default configuration uses a rather nice geometric sans-serif font called [Montserrat](https://www.google.com/fonts/specimen/Montserrat) hosted by Google Fonts.

README 原文

The CSS is adapted from [HTML5 Boilerplate](https://html5boilerplate.com/).

README 原文

~~A live site using this theme: [socratic.space](http://socratic.space)~~ Nope, it's totally gone.

README 原文

martialpaperlastmod="YYYYMMDD" #Optional. If you set it, it will display a Last Modified Date under the footer. This is not automated at all, nor formatted

README 原文
https://github.com/pedrodude/martial-paper/blob/master/LICENSE.mdhttps://github.com/pedrodude/martial-paper/blob/master/README.md

DeepSeek 根据仓库许可证和 README 整理 ·2026-10-11。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。

项目核对记录与介绍依据

模板资料

来源平台
GitHub
资料与维护参考分
资料较少 · 53 / 100
技术栈
Hugo
网站类型
工具站
这个分数如何计算

本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。

这个项目需要核对什么

记录的仓库更新时间
2018-05-10
截图检查日期
2026-10-11

目前没有记录演示链接。请依据仓库说明在本地评估;仅凭截图无法确认交互行为。

目录记录的主要技术栈是 Hugo。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。

查看具体选型方法 →

介绍的制作与核对状态

介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。

审核声明: [email protected] · 2026-10-13

查看当时使用的来源资料

SHA-256: 1832cfe8053b763594f639b459e65a8925a5a31218f6b4469d0cc99ef2f89fde

2026-10-11T17:26:19.952Z

来源文件 / 仓库
martial paper
===============================

A minimalist, smart, paper theme.

The theme was inspired by the right-angle and the default colours by Starry Night Over the Rhone.

~~A live site using this theme: [socratic.space](http://socratic.space)~~  Nope, it's totally gone.  All that you have to go on is a single screenshot and a sense of adventure.  Plunge forth, valiant one!

## Screenshot

![MP screenshot](https://raw.githubusercontent.com/pedrodude/martial-paper/master/images/screenshot.png "MP screenshot")

## Installation

Generic installation instructions are [here](https://gohugo.io/themes/installing/)

## Setup

### Site configuration

Change the bits of the following config.toml file that start with TK (and get rid of the TK)

---
```toml
#Adjust all settings that start with TK to customise this theme to your site.  Also remove the TK
theme = "martial-paper"
baseurl = "TK http://mysite.com"
languageCode = "en-us"
title = "TK MY SITE'S TITLE"

[params]
  aboutpage = "TK name-of-the-about-post" #This makes the "about" link in the header function.  It must be the exact filename of your about page without the file extension.  E.g. if your about page is called "mysiteabout.md" then enter in "mysiteabout"
  author = "TK Your Name" #Goes in the meta info of your webpage to help identify you as the author of the content
  copyrightstatement = "TK A copyright statement of your choosing." #Will appear in the footer of each page.
  description = "TK A description that will appear in the html meta" #Goes in the meta info of your webpage to describe the content of your site
  siteclass = "TK MY SITE'S SUBTITLE" #Optional.  If you set it, it will display a subtitle in a contrasting color (adjustable within the CSS) on the site's index page.
  tagline = "TK My site's witty tagline" #Optional.  If you set it, it will display a tagline for the website underneath the titles.  By default it appears italicized.
```
---

### Indexintro.md

To add in some introductory spiel to the index page, create a markdown document in your content folder with the following in your toml frontmatter:
```toml
timeless = "indexintro"
title = "indexintro"
```
To keep things simple there's no repositioning of the page index; so perhaps keep this bit short so as not to push the index too far down the page.

### CSS

The CSS is adapted from [HTML5 Boilerplate](https://html5boilerplate.com/).  The theme mainly makes use of flexbox for positioning, with some color tweaks.  In terms of font choice: geometric sans-serifs, monospace, and perhaps even slab serifs all seem to work fine.

### Individual page configuration

Page configuration is largely unchanged from the default but there are some additional bits in the archetype (the template that defines default page settings) which enable additional features.  It's explained in the comments in the template for your page frontmatter below.

---
```toml
+++
streamtitle="" #Optional.  If you set it, it will display a subtitle in a contrasting color (adjustable within the CSS) on the individual page.
timeless = "false" #Optional.  If you set it, it will determine whether the post displays date features (displaying a date on the post summary on the index page, date in the page title).  Changing the value to true suppresses all of these features, with the exception of the last modified date shown by the pedrolastmod parameter
suppress = "false"  If set to true, the page will be suppressed from display on the index page
draft=true
martialpaperlastmod="YYYYMMDD" #Optional.  If you set it, it will display a Last Modified Date under the footer.  This is not automated at all, nor formatted, but simply provides a basic ability to indicate that the creation date differs from the modified date.  If left unchanged, it will display the created date.
+++

LOREM IPSUM PAGE CONTENT GOES HERE
```
---

## Dependencies (and acknowledgements)

### HTML5 Boilerplate [and Normalize.css]

An excellent starting point.  Actually the minified version of Normalize.css; apparently we are preferring robots to humans now... 

### Hugo

Very easy.  Everyone should learn HTML, CSS, and then this.

### Google Fonts

The default configuration uses a rather nice geometric sans-serif font called [Montserrat](https://www.google.com/fonts/specimen/Montserrat) hosted by Google Fonts.

---

And the name?  I had a moment where I thought it looked like official paper that you might find in a military office... [^1].  And yes I know that's rubbish, but I thought about it for like 2 seconds; give me a break.

[^1]: The red version did, and the red is in the CSS if you prefer.
反馈内容错误

看看同类模板

对比同技术栈与用途的模板,找到更适合的视觉与内容结构。