<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>梦石's Blog</title><link>https://mengshitia.github.io/en/</link><description/><generator>Hugo</generator><language>en</language><lastBuildDate>Thu, 12 Feb 2026 15:28:44 +0800</lastBuildDate><atom:link href="https://mengshitia.github.io/en/index.xml" rel="self" type="application/rss+xml"/><item><title>Hello, World!</title><link>https://mengshitia.github.io/en/posts/hello-world/</link><pubDate>Thu, 12 Feb 2026 15:28:44 +0800</pubDate><guid>https://mengshitia.github.io/en/posts/hello-world/</guid><description>&lt;h2 id="a-wish"&gt;A wish&lt;/h2&gt;
&lt;p&gt;I like browsing all kinds of personal websites and blogs.
No matter what these websites are.
They can be used to show off skills, share one&amp;rsquo;s daily life or simply just be a online notebook.
For me, they are just the bridges that connect me &amp;ndash; the reader, and the creators.
So I could walk into the eden of the creators and enjoy.&lt;/p&gt;
&lt;p&gt;After seeing these wonderful websites and blogs, I wish I could have one too.&lt;/p&gt;
&lt;h2 id="the-opportunity"&gt;The opportunity&lt;/h2&gt;
&lt;p&gt;Just like the other experience when I switched to a Linux distribution,
I found Hugo in the corner of the Internet.&lt;/p&gt;
&lt;p&gt;Well, if I hadn&amp;rsquo;t had &lt;em&gt;that wish&lt;/em&gt; first, I might have completely dismissed it with just a quick glance.&lt;/p&gt;
&lt;h2 id="try-out"&gt;Try out&lt;/h2&gt;
&lt;p&gt;Following the instructions in the documentation, a brand new website was up and running.
The black-box technique was amazing.&lt;/p&gt;
&lt;p&gt;But then I found a problem immediately, which can be very crucial to me:
The Ananke theme doesn&amp;rsquo;t have a dark theme.&lt;/p&gt;
&lt;p&gt;As a heavy browser user, how come it came without a dark theme?
&amp;ldquo;Fine, forget about it&amp;rdquo;, I said.
Then I went for some other Hugo themes that may be suitable for me.&lt;/p&gt;
&lt;p&gt;After searching and trying out, I chose these themes:
&lt;a href="https://github.com/nanxiaobei/hugo-paper"&gt;Paper&lt;/a&gt;, &lt;a href="https://github.com/adityatelange/hugo-PaperMod"&gt;Paper-Mod&lt;/a&gt; and &lt;a href="https://github.com/CaiJimmy/hugo-theme-stack"&gt;Stack&lt;/a&gt;.
All these themes have a switch for toggling dark/light theme, soft color scheme and great design of the UI plus a fluent UX.&lt;/p&gt;
&lt;p&gt;However, when I was using and tweaking these themes,
I realized they have so many features that not all of them are useful to me.&lt;/p&gt;
&lt;p&gt;Moreover, I was not satisfied with the dark/light theme toggle feature given by them.
Because Paper and Paper-Mod are lacking the &lt;code&gt;'auto-mode'&lt;/code&gt; feature which follows the system settings or just provide the feature, but users can&amp;rsquo;t decide when to use it, like the Stack theme.&lt;/p&gt;
&lt;h2 id="tweak-write-a-new-one"&gt;Tweak? Write a new one!&lt;/h2&gt;
&lt;p&gt;&amp;ldquo;What if I write a theme which gives me just enough features including the dark/light theme switching feature myself?&amp;rdquo;&lt;/p&gt;
&lt;p&gt;Well, this thought came out not so long after me trying out these themes,
and it seems so crazy at that time, in hindsight.&lt;/p&gt;
&lt;p&gt;With that thought in my mind, I dived into the Hugo Documentation and started digging in.
Unfortunately, it barely has descriptions about the Hugo theme,
the only thing I found was: &amp;ldquo;A theme is a Hugo module, just like a Hugo site, it&amp;rsquo;s a module too.&amp;rdquo;
Therefore, it is no exaggeration to say that I spent a month.
The process in between was one of trying to understand, using it, failing and starting over&amp;hellip;
This part would be boring for readers, so I&amp;rsquo;ll skip it.&lt;/p&gt;
&lt;p&gt;Side note: &lt;a href="https://github.com/athul/archie"&gt;Archie&lt;/a&gt;, a simple theme, even using the old version of the template system, helped me grasp how Hugo template system works.&lt;/p&gt;
&lt;h2 id="finally"&gt;Finally&lt;/h2&gt;
&lt;p&gt;I finished writing my Hugo theme &lt;a href="https://github.com/mengshitia/hugo-theme-mage"&gt;Mage&lt;/a&gt; at last.
It has all the features I need: displaying my avatar, listing articles on the home page, having the &amp;lsquo;Archive&amp;rsquo; section, the &amp;lsquo;About&amp;rsquo; section, the taxonomies, the tags and the most important, dark/light theme switching feature.
It also comes with soft color scheme and the card-based layout design those themes have.&lt;/p&gt;
&lt;p&gt;With the right theme, I settled down and finished this article.&lt;/p&gt;
&lt;p&gt;So, first came a wish, then I forgot the middle part, but in the end I still managed to pull it off!&lt;/p&gt;
&lt;h2 id="afterword"&gt;Afterword&lt;/h2&gt;
&lt;p&gt;Though a little bit odd, I want to thank all my friends for your help and support,
even the support that is not relevant to this.&lt;/p&gt;</description></item></channel></rss>