Hugo启动器

hugo-theme-linen — Hugo 启动器模板

作者 zenpe

hugo-theme-linen 是将 hexo-theme-linen 移植到 Hugo 的阅读型主题,保留原主题排版,使用 Hugo 的 layouts、taxonomy、shortcode 与 RSS 输出。

看看你的网站会是什么样

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

3 个预览视图
桌面端首页1 / 3
桌面端截图首屏预览

由服务器浏览器实际访问页面后截取。

全部页面与视图 3

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

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

值得关注的模板亮点

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

01

hexo-theme-linen 的 Hugo 移植版,保留原主题的阅读排版

02

使用 Hugo layouts、taxonomies、shortcodes 与 RSS 输出

03

提供 exampleSite,可直接本地构建与预览

04

series 以 Hugo taxonomy 实现,image-grid 以 shortcode 实现

05

Moments 短内容流支持年/月目录结构与分页

06

页面 front matter 支持 cover、excerpt、tocType、donates、sponsors 等字段

模板详细介绍

hugo-theme-linen 是 zenpe 维护的 Hugo 主题,源自 LynanBreeze 的 hexo-theme-linen,目标是在 Hugo 中保留 Linen 的阅读体验,同时改用 Hugo 的模板机制:layouts、taxonomies、shortcodes、RSS 输出和 exampleSite 组织方式。仓库提供 exampleSite,可用 hugo --source exampleSite --themesDir ../.. 构建,或用 hugo server 在本地 127.0.0.1:1313 预览。

主题通过 hugo.toml 的 params 读取配置,包括 logo、info、navItems、topArticles、feed、siteOriginLocaleMap、rawMarkdownSourceDir、comment、photoswipe、lazyload 以及 moments.paginate。页面 front matter 支持 cover、coverInfo、thumbnail、excerpt、series、tags、categories、appendRawMarkdown、tocType、customComments、translations、hide.recent、hide.archive、donates、sponsors、ageWarning、copyright 等字段。series 以 Hugo taxonomy 实现,image-grid 以 shortcode 实现。

Moments 是独立于文章与归档的短内容流,推荐按年/月组织 content/moments 目录,主 /moments/ 页显示最近内容并带 Older moments / Newer moments 分页,月页与年页分别展示对应范围。列表页中 PhotoSwipe 按单条 moment 分组图片,而不是整页合并。

限制与依赖:需要 Hugo Extended 0.163.2 或更新版本。appendRawMarkdown 默认显示 .RawContent,只有需要展示保留的源 Markdown 文件时才设置 params.rawMarkdownSourceDir。演示图片、字体、图标等第三方素材需按各自许可核对,仓库另有 THIRD_PARTY_NOTICES.md 列出捆绑的第三方资源。

Hugo启动器

适合你的项目吗?

适用场景

  • 用 Hugo 搭建以阅读体验为主的内容站点
  • 从 hexo-theme-linen 迁移到 Hugo 并希望保留原有排版风格
  • 在文章之外维护按年/月组织的短内容流(Moments)
  • 需要 image-grid shortcode 与 PhotoSwipe 图片浏览的图文页面

适合人群

  • 使用 Hugo Extended 0.163.2 或更新版本的用户
  • 偏好阅读型排版、需要系列文章与分类标签的博客作者
  • 希望在文章之外发布短内容流的站点维护者
  • 能自行核对第三方素材许可的开发者

上手与定制指南

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

  1. 1

    需要 Hugo Extended 0.163.2 或更新版本

  2. 2

    通过 git submodule add 将主题放入 themes/hugo-theme-linen,并在站点配置中设置 theme = "hugo-theme-linen"

  3. 3

    可用 hugo --source exampleSite --themesDir ../.. 构建示例站点,或用 hugo server 在 127.0.0.1:1313 预览

  4. 4

    Moments 建议按 content/moments/_index.md、content/moments/2026/_index.md、content/moments/2026/06/_index.md 的年/月结构组织

  5. 5

    演示图片、字体、图标等第三方素材需按各自许可核对,捆绑资源见 THIRD_PARTY_NOTICES.md

查看仓库使用说明

授权与来源资料

使用条件与限制

免费使用 · 保留许可声明

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

使用时需要遵守

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

额外费用与待核对事项

  • 使用该主题需要 Hugo Extended 0.163.2 或更新版本,普通版 Hugo 或更低版本无法使用。
  • appendRawMarkdown 默认展示 .RawContent;仅当需要展示保留的源 Markdown 文件时才设置 params.rawMarkdownSourceDir。
  • 捆绑的第三方素材与库有各自许可,需另行核对 THIRD_PARTY_NOTICES.md,不随主题的 MIT 许可一并授权。
  • 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
  • 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据

Permission is hereby granted, free of charge

许可证原文

- Hugo Extended `0.163.2` or newer

README 原文

Set `params.rawMarkdownSourceDir` only when you need to display preserved source Markdown files instead of the converted Hugo content.

README 原文

Bundled third-party assets and libraries are listed in [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md).

README 原文
https://github.com/zenpe/hugo-theme-linen/blob/main/LICENSEhttps://github.com/zenpe/hugo-theme-linen/blob/main/README.md

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

项目核对记录与介绍依据

模板资料

来源平台
Hugo Themes
资料与维护参考分
资料较完整 · 79 / 100
技术栈
Hugo
网站类型
启动器
这个分数如何计算

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

这个项目需要核对什么

记录的仓库更新时间
2026-06-23
截图检查日期
2026-10-03

已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。

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

查看具体选型方法 →

介绍的制作与核对状态

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

已完成服务器许可规则与 AI 来源核对;未经过人工编辑审核。

查看当时使用的来源资料

SHA-256: 7f9bde31935e48638216cdab227f3829a90246cda3f224868a1c2a549f0c159e

2026-10-03T04:24:02.431Z

来源文件 / 仓库
# Hugo Linen

Hugo Linen is a Hugo port/adaptation of [hexo-theme-linen](https://github.com/LynanBreeze/hexo-theme-linen), originally created by LynanBreeze. It keeps the Linen reading experience while using Hugo layouts, taxonomies, shortcodes, RSS output, and example-site conventions.

**[View Demo](https://linen-demo.screensize.net)**

## Requirements

- Hugo Extended `0.163.2` or newer

## Try the Example Site

```powershell
hugo --source exampleSite --themesDir ../..
hugo server --source exampleSite --themesDir ../.. --bind 127.0.0.1 --port 1313
```

Open `http://127.0.0.1:1313/`.

## Install

```powershell
git submodule add https://github.com/zenpe/hugo-theme-linen themes/hugo-theme-linen
```

Set the theme name in your site configuration:

```toml
theme = "hugo-theme-linen"
```

## Supported Options

The theme reads the equivalent settings from `params` in `hugo.toml`:

- `params.logo`
- `params.info`
- `params.navItems`
- `params.topArticles`
- `params.feed`
- `params.siteOriginLocaleMap`
- `params.rawMarkdownSourceDir`
- `params.comment`
- `params.photoswipe`
- `params.lazyload`
- `params.moments.paginate`

Supported page front matter includes `cover`, `coverInfo`, `thumbnail`, `excerpt`, `series`, `tags`, `categories`, `appendRawMarkdown`, `tocType`, `customComments`, `translations`, `hide.recent`, `hide.archive`, `donates`, `sponsors`, `ageWarning`, and `copyright`.

## Notes

`series` is implemented as a Hugo taxonomy. `image-grid` is implemented as a shortcode:

```markdown
{{</* image-grid "landscape" */>}}
![](/img/example-a.jpg)
![](/img/example-b.jpg)
{{</* /image-grid */>}}
```

When `appendRawMarkdown` is enabled, the theme shows `.RawContent` by default. Set `params.rawMarkdownSourceDir` only when you need to display preserved source Markdown files instead of the converted Hugo content.

## Moments

`Moments` is an optional short-form content stream separate from posts and archives. The recommended content structure is year/month based:

```text
content/moments/_index.md
content/moments/2026/_index.md
content/moments/2026/06/_index.md
content/moments/2026/06/my-note.md
```

The main `/moments/` page shows recent moments with `Older moments` / `Newer moments` pagination. Month pages such as `/moments/2026/06/` show all moments in that month. Year pages such as `/moments/2026/` are supported and show all moments from that year.

Configure the main stream page size with:

```toml
[params.moments]
  paginate = 20
```

Moments render normal Markdown, including links, images, and `image-grid`. On list pages, PhotoSwipe groups images per moment item rather than across the whole page.

## Attribution

Original theme: [hexo-theme-linen](https://github.com/LynanBreeze/hexo-theme-linen) by LynanBreeze.

Hugo port and responsive adjustments: [zenpe/hugo-theme-linen](https://github.com/zenpe/hugo-theme-linen).

Bundled third-party assets and libraries are listed in [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md).
反馈内容错误

看看同类模板

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