HugoStarter

hugo-trainsh — Hugo Starter Template

By binbinsh

hugo-trainsh is a Hugo theme focused on content reading, with a default retro pixel style inspired by NES/FC 8-bit RPGs and switchable Light and Dark modes.

Explore the design

Compare the page layouts and mobile experience. Open any screenshot for a closer look.

3 previews
Desktop homepage1 / 3
Desktop captureTop of page

Actual screenshot captured by the server browser.

All pages & views 3

Screenshots show visual appearance; interactive behavior may differ.

Recorded 2026-10-03View source

What stands out

A quick read of the recorded project description.

01

Default Retro mode uses NES/FC 8-bit pixel style with a deep blue background and white pixel dialog-box borders

02

Headings, navigation, and UI use Fusion Pixel 12px fonts, with font variants for Simplified Chinese, Traditional Chinese, Japanese, and Latin characters

03

The header cycles through Retro, Light, and Dark modes

04

Three built-in shortcodes: toc, tags, and recent-posts; tags supports frequency sorting and a count limit

05

Code blocks include syntax highlighting, a copy button, and a soft-wrap toggle, and support Mermaid diagrams and KaTeX math

06

Provides a /blog/ archive grouped by year and a /tags/ page; images support captions and a PhotoSwipe lightbox

Template Details

This theme targets text-focused Hugo sites. Its default appearance is retro pixel style: a deep blue background with white pixel dialog-box borders, Fusion Pixel 12px fonts for headings and navigation, and separate font variants for Simplified Chinese, Traditional Chinese, Japanese, and Latin characters. Code blocks use NES-palette syntax highlighting; tags, dividers, and shadows follow the pixel style, and no CSS transition animations are used.

In addition to the default Retro mode, the header offers two modern color schemes, Light (sun icon) and Dark (moon icon), cycling in the order Retro → Light → Dark → Retro.

Features include reading layouts for posts and pages, a /blog/ archive grouped by year, a /tags/ page, and three built-in shortcodes: toc, tags, and recent-posts. Code blocks support syntax highlighting, a copy button, and a soft-wrap toggle, and the theme supports Mermaid diagrams, KaTeX math, images with captions, and a PhotoSwipe lightbox. The theme also provides multilingual support and footer social links.

Before use, note: mainSections must match the actual post directory (content/posts/ corresponds to ["posts"], content/blog/ to ["blog"]); the /blog/ page requires manually creating content/blog/_index.md to be enabled.

HugoStarter

Is it right for your project?

Use Cases

  • Building a personal blog or technical notes site focused on article reading
  • Hugo projects that want an 8-bit game or retro pixel visual style
  • Content sites that need to offer retro, light, and dark color schemes on the same site
  • Publishing technical articles that include code blocks, Mermaid diagrams, or KaTeX math
  • Sites serving multilingual readers that need pixel font variants adjusted by language

Suitable For

  • Content creators using Hugo who want to apply an existing theme quickly
  • Personal site maintainers who prefer pixel art and retro game aesthetics
  • Developers who need archive pages, tag pages, and in-article tables of contents for technical writing
  • Sites that accept a content-reading focus and do not require complex page modules

Getting started & customization

Use these recorded setup notes alongside the repository instructions for your chosen version.

  1. 1

    Add the repository to themes/hugo-trainsh via git submodule, then run git submodule update --init --recursive

  2. 2

    Set theme = "hugo-trainsh" in the site configuration and configure [params] mainSections to match the actual post directory

  3. 3

    To have a /blog/ page, manually create content/blog/_index.md

  4. 4

    To use JSON output for a custom index or search, add "JSON" to home in [outputs]

  5. 5

    For detailed usage, see docs/usage.md in the repository

Read repository instructions

License & source material

Usage conditions & limitations

Free to use · keep license notice

This entry covers the free version in the public repository under the MIT license; the free scope is the code of that version and does not mean external services or third-party assets are free.

Must comply with when using

  • You may use, modify, commercially use, and distribute the code of this version for free.
  • When distributing copies or substantial portions of the code, retain the original author's copyright notice and the full 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

  • Demo images, fonts, icons, and other third-party assets must be checked against their respective licenses; the code's MIT license alone cannot be used to judge them.
  • External services such as domains, hosting, databases, payments, or AI may incur separate charges.
View Original Text Basis

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 · 87 / 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-05-06
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: 6055ae6399c5270504c4b2e3757b06ad466643278ff2760308f44d26909c0887

2026-10-03T06:46:40.669Z

Source file / repository
# hugo-trainsh

A minimal, content-first Hugo theme — defaults to a **NES/FC retro pixel style** inspired by classic 8-bit RPGs.

## Retro Mode (Default)

The theme ships with a **Retro** mode enabled by default, inspired by the NES/FC era:

- Deep-blue background (`#00237C`) with white pixel-art dialog borders
- **Fusion Pixel 12px** font for headings, navigation, and UI elements
- Per-language font variants: Simplified Chinese, Traditional Chinese, Japanese, and Latin
- NES palette syntax highlighting for code blocks
- RPG-style gold tags, pixel dashed `<hr>`, hard shadows, zero border-radius
- No CSS transitions — everything snaps like an 8-bit console

Two additional modes are available via the header toggle: **Light** and **Dark** (clean, modern palettes). The cycle is: Retro (gamepad) → Light (sun) → Dark (moon) → Retro …

## Features

- Clean reading layout for posts and pages
- `/blog/` archive (grouped by year) and `/tags/` taxonomy pages
- Built-in shortcodes:
  - `{{< toc >}}`
  - `{{< tags >}}` / `{{< tags sort="freq" limit="20" >}}`
  - `{{< recent-posts limit="5" >}}`
- Code blocks with syntax highlighting, copy button, and soft-wrap toggle
- Mermaid diagrams and KaTeX math rendering
- Image rendering with figure captions + PhotoSwipe lightbox
- Three theme modes: Retro (default), Light, and Dark
- Multilingual support (with per-language pixel font variants) and footer social links

## Quick Start

```bash
git submodule add https://github.com/binbinsh/hugo-trainsh themes/hugo-trainsh
git submodule update --init --recursive
```

In your site config:

```toml
theme = "hugo-trainsh"

[params]
mainSections = ["posts"]
```

`mainSections` must match where your posts live (`content/posts/` -> `["posts"]`, `content/blog/` -> `["blog"]`).

Optional JSON output (for custom index/search use cases):

```toml
[outputs]
home = ["HTML", "RSS", "JSON"]
```

Create `content/blog/_index.md` to enable the `/blog/` page.

## Documentation

- Usage guide: [`docs/usage.md`](docs/usage.md)

## Theme Info

- Demo: [hugo-trainsh.pages.dev](https://hugo-trainsh.pages.dev)
- Repository: [github.com/binbinsh/hugo-trainsh](https://github.com/binbinsh/hugo-trainsh)
- Author: [Binbin Shen](https://github.com/binbinsh)
Report a correction

Explore similar templates

Compare previews and descriptions within the same stack and category.

hugo-xmin

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

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

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

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

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

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