Finally Created a Hugo Theme Based on My Own Understanding

Words: 337

Thanks to advances in large models, with the help of Trae, I was finally able to build a theme that matches my own design and expectations.

The overall design references the hugo-theme-stack theme I used before, though I made many adjustments based on my own needs.

First, the layout uses three columns: navigation on the left, content in the middle, and a sidebar on the right.

The navigation bar can switch between menus and the article tree, and users can drag to resize its width; on narrow phone screens it collapses into a single button that users can tap to expand.

The article tree draws on the directory structures of products like Notion and knowledge bases, which are a great way to organize article structure. So I allow specifying a parent in an article to establish parent-child relationships, which generates an article tree configuration.

The content area uses the LXGW WenKai font, an open-source Chinese typeface that renders Chinese text very well.

The table of contents on the right is generated automatically from the article’s heading structure; users can click an entry to jump to that position, and it hides when the screen is narrow.

The overall palette is Solarized, which I’ve loved since I entered the industry. It creates a paper-like feel, and I also considered dark mode. Under this design the body text has an ink-black quality, while links have the texture of blue ink.

Site style

From experience it basically matches my current aesthetic, though I may keep refining it later.

But as I said before, what matters most for a blog is certainly the content; reworking the theme is more about the author’s sentiment and personal emotional value.

Given my limited capabilities, I can’t offer long-term, stable support, and inspiration strikes at any time, so there may be some breaking updates that can’t be guaranteed to suit everyone’s taste — hence I’m not planning to open-source it for now.

If you have questions, suggestions, or feedback, feel free to discuss them in the comments below.

This post is licensed under CC BY-NC-SA 4.0. If it helped, or if you have anything to say, the comment box below is open.
Page views —
Unique visitors —

Loading...