Hugo port of hexo-theme-linen, preserving the original theme's reading typography
hugo-theme-linen — Hugo Starter Template
By zenpe
hugo-theme-linen is a reading-focused theme ported from hexo-theme-linen to Hugo, preserving the original theme's typography and using Hugo's layouts, taxonomy, shortcode, and RSS output.
Explore the design
Compare the page layouts and mobile experience. Open any screenshot for a closer look.
Actual screenshot captured by the server browser.
All pages & views 3
Screenshots show visual appearance; interactive behavior may differ.
What stands out
A quick read of the recorded project description.
Uses Hugo layouts, taxonomies, shortcodes, and RSS output
Provides an exampleSite for direct local building and previewing
Series implemented as a Hugo taxonomy, image-grid implemented as a shortcode
Moments short-content stream supports year/month directory structure and pagination
Page front matter supports fields such as cover, excerpt, tocType, donates, and sponsors
Template Details
hugo-theme-linen is a Hugo theme maintained by zenpe, derived from LynanBreeze's hexo-theme-linen. Its goal is to preserve Linen's reading experience in Hugo while switching to Hugo's templating mechanisms: layouts, taxonomies, shortcodes, RSS output, and exampleSite organization. The repository provides an exampleSite, which can be built with hugo --source exampleSite --themesDir ../.., or previewed locally with hugo server at 127.0.0.1:1313.
The theme reads configuration through params in hugo.toml, including logo, info, navItems, topArticles, feed, siteOriginLocaleMap, rawMarkdownSourceDir, comment, photoswipe, lazyload, and moments.paginate. Page front matter supports fields such as cover, coverInfo, thumbnail, excerpt, series, tags, categories, appendRawMarkdown, tocType, customComments, translations, hide.recent, hide.archive, donates, sponsors, ageWarning, and copyright. Series are implemented as a Hugo taxonomy, and image-grid is implemented as a shortcode.
Moments is a short-content stream independent of posts and archives. Organizing the content/moments directory by year/month is recommended. The main /moments/ page shows recent content with Older moments / Newer moments pagination, while month and year pages display their respective ranges. In list pages, PhotoSwipe groups images per individual moment rather than merging the entire page.
Limitations and dependencies: Hugo Extended 0.163.2 or later is required. appendRawMarkdown displays .RawContent by default; set params.rawMarkdownSourceDir only when you need to display preserved source Markdown files. Third-party assets such as demo images, fonts, and icons must be checked against their respective licenses, and the repository includes THIRD_PARTY_NOTICES.md listing bundled third-party resources.
Is it right for your project?
Use Cases
- Building a content site focused on reading experience with Hugo
- Migrating from hexo-theme-linen to Hugo while wanting to keep the original typography style
- Maintaining a short-content stream (Moments) organized by year/month alongside articles
- Illustrated pages that need the image-grid shortcode and PhotoSwipe image browsing
Suitable For
- Users running Hugo Extended 0.163.2 or later
- Bloggers who prefer reading-oriented typography and need series articles with categories and tags
- Site maintainers who want to publish a short-content stream alongside articles
- Developers who can independently verify third-party asset licenses
Getting started & customization
Use these recorded setup notes alongside the repository instructions for your chosen version.
- 1
Requires Hugo Extended 0.163.2 or later
- 2
Add the theme to themes/hugo-theme-linen via git submodule add, and set theme = "hugo-theme-linen" in the site configuration
- 3
Build the example site with hugo --source exampleSite --themesDir ../.., or preview with hugo server at 127.0.0.1:1313
- 4
For Moments, organizing by year/month structure such as content/moments/_index.md, content/moments/2026/_index.md, and content/moments/2026/06/_index.md is recommended
- 5
Third-party assets such as demo images, fonts, and icons must be checked against their respective licenses; bundled resources are listed in THIRD_PARTY_NOTICES.md
License & source material
Usage conditions & limitations
Free to use · keep license noticeThis entry covers the free version under the MIT license in the public repository; the free scope is that version's code and does not mean external services or third-party assets are free.
Must comply with when using
- Free use, modification, commercial use, and distribution of that version's code are permitted.
- When distributing copies or substantial portions of the code, retain the original author's copyright notice and the complete MIT license notice.
- The code is provided as is; warranties and limitations of liability are governed by the original license and applicable law.
Additional costs & items to verify
- Using this theme requires Hugo Extended 0.163.2 or later; standard Hugo or earlier versions cannot use it.
- appendRawMarkdown displays .RawContent by default; set params.rawMarkdownSourceDir only when you need to display preserved source Markdown files.
- Bundled third-party assets and libraries have their own licenses and must be checked separately in THIRD_PARTY_NOTICES.md; they are not licensed together with the theme's MIT license.
- Demo images, fonts, icons, and other third-party assets must be checked against their respective licenses and cannot be judged solely by the code's MIT license.
- External services such as domains, hosting, databases, payments, or AI may incur additional charges.
View Original Text Basis
Permission is hereby granted, free of charge
Original License Text
- Hugo Extended `0.163.2` or newer
Original README
Set `params.rawMarkdownSourceDir` only when you need to display preserved source Markdown files instead of the converted Hugo content.
Original README
https://github.com/zenpe/hugo-theme-linen/blob/main/LICENSEhttps://github.com/zenpe/hugo-theme-linen/blob/main/README.mdBundled third-party assets and libraries are listed in [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md).
Original README
Compiled by DeepSeek based on repository license and README ·2026-10-03. Results only cover the materials read; dependencies, images, fonts, and subsequent term changes are subject to their respective original texts.
Project checks & description sources
Template Information
- Source platforms
- Hugo Themes
- Documentation and maintenance reference score
- More documented · 79 / 100
- Technologies
- Hugo
- Website type
- Starter
How this score is calculated
Our heuristic uses license records (up to 30), a demo link (12), a preview (10), stars (15), recorded maintenance (15), description completeness (8), feature records (5) and classification data (5). It is not a code, security or performance test, or a Google score. A link does not establish tested functionality.
What to verify for this project
- Repository update recorded
- 2026-06-23
- Screenshot last checked
- 2026-10-03
A demo link is listed. Check it with your own content and viewport sizes; its presence does not confirm that forms, authentication or payments work.
The catalog identifies Hugo as the primary stack. Check the actual dependency manifest and lockfile for versions and hosting requirements. These notes use recorded metadata, not a code audit or a deployment test.
Use a selection guide →How this description was prepared
AI-assisted description based on catalog records and repository material. Repository authors are not automatically the reviewers of this description.
Automatically checked against source and license rules; no manual editorial review.
Inspect the recorded source material
SHA-256: 7f9bde31935e48638216cdab227f3829a90246cda3f224868a1c2a549f0c159e
2026-10-03T04:24:02.431Z
Source file / repository# 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" */>}}


{{</* /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).
Explore similar templates
Compare previews and descriptions within the same stack and category.

hugo-xmin
hugo-xmin is an extremely minimal Hugo theme written by Yihui Xie for template beginners. HTML and CSS total about 140 lines, with no external dependencies, and it uses the MIT license.
Hugo · Starter

hugo-theme-gallery
A Hugo Extended photo gallery theme that organizes images with Page Bundles, automatically generating album lists and gallery pages with a Justified layout and PhotoSwipe lightbox.
Hugo · Starter

reveal-hugo
reveal-hugo is a Hugo theme that converts Markdown content into Reveal.js-based HTML presentations. It supports slide separation with `---`, shortcodes for fragments, slides, sections, notes, Markdown, and MathJax, and organizes content as root or section presentations with order controlled by weight.
Hugo · Starter

anatole
Anatole is a minimalistic two-column Hugo theme ported from farbox-theme-Anatole, featuring dark mode, multilingual and RTL support, and optional portfolio, comments, analytics, KaTeX, and Mermaid integrations. It suits personal blogs, portfolios, or documentation sites built with Hugo.
Hugo · Starter

hugo-theme-diary
A Hugo diary-style theme ported from the Hexo theme Journal, with a grid homepage for essays and daily notes. It supports six languages, dark mode, table-of-contents scroll positioning, reading time, code highlighting, and configurable sidebar, fonts, and colors.
Hugo · Starter

risotto
risotto is a minimalist, responsive Hugo theme inspired by terminal ricing aesthetics. It uses semantic HTML and pure CSS with no JavaScript, and its layout relies on CSS Grid for native responsiveness without manual breakpoints.
Hugo · Starter
