This is the demo site for nocturne, a Hugo theme for a blog with a personal portfolio: Vietnamese first, dark by default, no build step. Every theme feature is switched on here, and each post shows off a few of them. “Your Name” is a stand-in; put your own name there when you use the theme.

What the home page is made of

The home page is a portfolio built from three parts:

  1. The intro: name, tagline, avatar, bio and links, read from data/profile.yaml.
  2. Featured projects: a grid of project cards from data/projects.yaml. A card shows an image, a demo link or tags only when the project has them.
  3. Recent posts: the five newest entries in Posts, with a link to the full list.

Where the features are

Posts fall into three categories, each showing a group of features:

  • Demo holds the technical tours: a Markdown tour with tables, footnotes and callouts; images with srcset, captions and a GIF served as video; code blocks with line highlighting and a copy button; and Hugo’s built-in shortcodes.
  • Hugo diary is a series: a category chip above the title, previous and next links that stay within the series, and related posts at the end.
  • Notes shows per-post overrides: one post turns comments off and uses its own license line, another turns the table of contents off and shows an updated date.

There is also the Archives page, grouped by year and month, Search powered by Pagefind, and the lists of tags and categories.

Switching language and theme

The site comes in Vietnamese and English. The globe button in the top right lists the translations of the page you are on; your pick is remembered, so next time you land straight in that language.

The moon and sun button next to it switches between dark and light. Dark is the default; pick light and the site remembers it, without a flash of the wrong colours on reload.

Learn more