<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Blogs on PwzXxm</title><link>https://pwzxxm.com/topics/blogs/</link><description>Recent content in Blogs on PwzXxm</description><generator>Hugo</generator><language>en</language><copyright>© Patrick Weizhi Xu</copyright><lastBuildDate>Tue, 01 Dec 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://pwzxxm.com/topics/blogs/index.xml" rel="self" type="application/rss+xml"/><item><title>Redesigning PwzXxm</title><link>https://pwzxxm.com/site-redesign/</link><pubDate>Tue, 01 Dec 2026 00:00:00 +0000</pubDate><guid>https://pwzxxm.com/site-redesign/</guid><description>&lt;p&gt;I redesigned the blog with help from Gemini 4 Hydrogen and GPT-6.2 Sol. The layout was inspired by &lt;a href="https://stephango.com/"&gt;Steph Ango’s site&lt;/a&gt;.&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;strong&gt;Home.&lt;/strong&gt; The latest post sits above the chronological archive.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Topics.&lt;/strong&gt; The subject index moves from &lt;code&gt;/tags/&lt;/code&gt; to &lt;code&gt;/topics/&lt;/code&gt;.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Hugo.&lt;/strong&gt; Code and math render at build time. Custom templates replace LoveIt, the theme I chose in &lt;a href="https://pwzxxm.com/blog-renovation/"&gt;2020&lt;/a&gt;.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Archive.&lt;/strong&gt; The site is now English-only, with the original URLs for those posts.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="site-colours"&gt;Site colours&lt;/h2&gt;&#10;&lt;table class="colour-table" aria-label="Site colours"&gt;&#10; &lt;thead&gt;&#10; &lt;tr&gt;&#10; &lt;th scope="col" id="colours-0-colour"&gt;Colour&lt;/th&gt;&#10; &lt;th scope="col"&gt;Variable&lt;/th&gt;&#10; &lt;th scope="col"&gt;UI&lt;/th&gt;&#10; &lt;th scope="col"&gt;Syntax highlighting&lt;/th&gt;&#10; &lt;/tr&gt;&#10; &lt;/thead&gt;&#10; &lt;tbody&gt;&#10; &lt;tr&gt;&#10; &lt;td headers="colours-0-colour colours-0-bg"&gt;&#10; &lt;span class="colour-swatch" data-swatch-theme="light" style="--swatch-color: #F4F4F0" role="img" aria-label="#F4F4F0"&gt;&lt;/span&gt;&#10; &lt;span class="colour-swatch" data-swatch-theme="dark" style="--swatch-color: #151716" role="img" aria-label="#151716"&gt;&lt;/span&gt;&#10; &lt;/td&gt;&#10; &lt;th scope="row" id="colours-0-bg"&gt;&lt;code&gt;--bg&lt;/code&gt;&lt;/th&gt;&#10; &lt;td&gt;Page background&lt;/td&gt;&#10; &lt;td&gt;&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td headers="colours-0-colour colours-0-bg-2"&gt;&#10; &lt;span class="colour-swatch" data-swatch-theme="light" style="--swatch-color: #EAEAE4" role="img" aria-label="#EAEAE4"&gt;&lt;/span&gt;&#10; &lt;span class="colour-swatch" data-swatch-theme="dark" style="--swatch-color: #1D201E" role="img" aria-label="#1D201E"&gt;&lt;/span&gt;&#10; &lt;/td&gt;&#10; &lt;th scope="row" id="colours-0-bg-2"&gt;&lt;code&gt;--bg-2&lt;/code&gt;&lt;/th&gt;&#10; &lt;td&gt;Callout background&lt;/td&gt;&#10; &lt;td&gt;Code background&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td headers="colours-0-colour colours-0-border"&gt;&#10; &lt;span class="colour-swatch" data-swatch-theme="light" style="--swatch-color: #E1E1DA" role="img" aria-label="#E1E1DA"&gt;&lt;/span&gt;&#10; &lt;span class="colour-swatch" data-swatch-theme="dark" style="--swatch-color: #272B29" role="img" aria-label="#272B29"&gt;&lt;/span&gt;&#10; &lt;/td&gt;&#10; &lt;th scope="row" id="colours-0-border"&gt;&lt;code&gt;--border&lt;/code&gt;&lt;/th&gt;&#10; &lt;td&gt;Borders and dividers&lt;/td&gt;&#10; &lt;td&gt;&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td headers="colours-0-colour colours-0-border-strong"&gt;&#10; &lt;span class="colour-swatch" data-swatch-theme="light" style="--swatch-color: #D0D0C6" role="img" aria-label="#D0D0C6"&gt;&lt;/span&gt;&#10; &lt;span class="colour-swatch" data-swatch-theme="dark" style="--swatch-color: #353A37" role="img" aria-label="#353A37"&gt;&lt;/span&gt;&#10; &lt;/td&gt;&#10; &lt;th scope="row" id="colours-0-border-strong"&gt;&lt;code&gt;--border-strong&lt;/code&gt;&lt;/th&gt;&#10; &lt;td&gt;Strong borders and underlines&lt;/td&gt;&#10; &lt;td&gt;&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td headers="colours-0-colour colours-0-faint"&gt;&#10; &lt;span class="colour-swatch" data-swatch-theme="light" style="--swatch-color: #9DA29E" role="img" aria-label="#9DA29E"&gt;&lt;/span&gt;&#10; &lt;span class="colour-swatch" data-swatch-theme="dark" style="--swatch-color: #565C58" role="img" aria-label="#565C58"&gt;&lt;/span&gt;&#10; &lt;/td&gt;&#10; &lt;th scope="row" id="colours-0-faint"&gt;&lt;code&gt;--faint&lt;/code&gt;&lt;/th&gt;&#10; &lt;td&gt;Archive dates and list markers&lt;/td&gt;&#10; &lt;td&gt;&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td headers="colours-0-colour colours-0-syn-cm"&gt;&#10; &lt;span class="colour-swatch" data-swatch-theme="light" style="--swatch-color: #8E9490" role="img" aria-label="#8E9490"&gt;&lt;/span&gt;&#10; &lt;span class="colour-swatch" data-swatch-theme="dark" style="--swatch-color: #69706B" role="img" aria-label="#69706B"&gt;&lt;/span&gt;&#10; &lt;/td&gt;&#10; &lt;th scope="row" id="colours-0-syn-cm"&gt;&lt;code&gt;--syn-cm&lt;/code&gt;&lt;/th&gt;&#10; &lt;td&gt;&lt;/td&gt;&#10; &lt;td&gt;Comments&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td headers="colours-0-colour colours-0-muted"&gt;&#10; &lt;span class="colour-swatch" data-swatch-theme="light" style="--swatch-color: #727774" role="img" aria-label="#727774"&gt;&lt;/span&gt;&#10; &lt;span class="colour-swatch" data-swatch-theme="dark" style="--swatch-color: #848B86" role="img" aria-label="#848B86"&gt;&lt;/span&gt;&#10; &lt;/td&gt;&#10; &lt;th scope="row" id="colours-0-muted"&gt;&lt;code&gt;--muted&lt;/code&gt;&lt;/th&gt;&#10; &lt;td&gt;Secondary text&lt;/td&gt;&#10; &lt;td&gt;&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td headers="colours-0-colour colours-0-text"&gt;&#10; &lt;span class="colour-swatch" data-swatch-theme="light" style="--swatch-color: #232524" role="img" aria-label="#232524"&gt;&lt;/span&gt;&#10; &lt;span class="colour-swatch" data-swatch-theme="dark" style="--swatch-color: #D2D6D3" role="img" aria-label="#D2D6D3"&gt;&lt;/span&gt;&#10; &lt;/td&gt;&#10; &lt;th scope="row" id="colours-0-text"&gt;&lt;code&gt;--text&lt;/code&gt;&lt;/th&gt;&#10; &lt;td&gt;Text and headings&lt;/td&gt;&#10; &lt;td&gt;Plain code text&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td headers="colours-0-colour colours-0-syn-kw"&gt;&#10; &lt;span class="colour-swatch" data-swatch-theme="light" style="--swatch-color: #8C433B" role="img" aria-label="#8C433B"&gt;&lt;/span&gt;&#10; &lt;span class="colour-swatch" data-swatch-theme="dark" style="--swatch-color: #CF7C72" role="img" aria-label="#CF7C72"&gt;&lt;/span&gt;&#10; &lt;/td&gt;&#10; &lt;th scope="row" id="colours-0-syn-kw"&gt;&lt;code&gt;--syn-kw&lt;/code&gt;&lt;/th&gt;&#10; &lt;td&gt;&lt;/td&gt;&#10; &lt;td&gt;Keywords and operators&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td headers="colours-0-colour colours-0-syn-type"&gt;&#10; &lt;span class="colour-swatch" data-swatch-theme="light" style="--swatch-color: #6B5344" role="img" aria-label="#6B5344"&gt;&lt;/span&gt;&#10; &lt;span class="colour-swatch" data-swatch-theme="dark" style="--swatch-color: #B89F8D" role="img" aria-label="#B89F8D"&gt;&lt;/span&gt;&#10; &lt;/td&gt;&#10; &lt;th scope="row" id="colours-0-syn-type"&gt;&lt;code&gt;--syn-type&lt;/code&gt;&lt;/th&gt;&#10; &lt;td&gt;&lt;/td&gt;&#10; &lt;td&gt;Types and namespaces&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td headers="colours-0-colour colours-0-syn-num"&gt;&#10; &lt;span class="colour-swatch" data-swatch-theme="light" style="--swatch-color: #8F6438" role="img" aria-label="#8F6438"&gt;&lt;/span&gt;&#10; &lt;span class="colour-swatch" data-swatch-theme="dark" style="--swatch-color: #C99D6B" role="img" aria-label="#C99D6B"&gt;&lt;/span&gt;&#10; &lt;/td&gt;&#10; &lt;th scope="row" id="colours-0-syn-num"&gt;&lt;code&gt;--syn-num&lt;/code&gt;&lt;/th&gt;&#10; &lt;td&gt;&lt;/td&gt;&#10; &lt;td&gt;Numbers&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td headers="colours-0-colour colours-0-syn-str"&gt;&#10; &lt;span class="colour-swatch" data-swatch-theme="light" style="--swatch-color: #476953" role="img" aria-label="#476953"&gt;&lt;/span&gt;&#10; &lt;span class="colour-swatch" data-swatch-theme="dark" style="--swatch-color: #82AD90" role="img" aria-label="#82AD90"&gt;&lt;/span&gt;&#10; &lt;/td&gt;&#10; &lt;th scope="row" id="colours-0-syn-str"&gt;&lt;code&gt;--syn-str&lt;/code&gt;&lt;/th&gt;&#10; &lt;td&gt;&lt;/td&gt;&#10; &lt;td&gt;Strings&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td headers="colours-0-colour colours-0-accent"&gt;&#10; &lt;span class="colour-swatch" data-swatch-theme="light" style="--swatch-color: #3A6355" role="img" aria-label="#3A6355"&gt;&lt;/span&gt;&#10; &lt;span class="colour-swatch" data-swatch-theme="dark" style="--swatch-color: #77A896" role="img" aria-label="#77A896"&gt;&lt;/span&gt;&#10; &lt;/td&gt;&#10; &lt;th scope="row" id="colours-0-accent"&gt;&lt;code&gt;--accent&lt;/code&gt;&lt;/th&gt;&#10; &lt;td&gt;Link hover and focus&lt;/td&gt;&#10; &lt;td&gt;&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td headers="colours-0-colour colours-0-syn-fn"&gt;&#10; &lt;span class="colour-swatch" data-swatch-theme="light" style="--swatch-color: #3D5B78" role="img" aria-label="#3D5B78"&gt;&lt;/span&gt;&#10; &lt;span class="colour-swatch" data-swatch-theme="dark" style="--swatch-color: #7EA3C4" role="img" aria-label="#7EA3C4"&gt;&lt;/span&gt;&#10; &lt;/td&gt;&#10; &lt;th scope="row" id="colours-0-syn-fn"&gt;&lt;code&gt;--syn-fn&lt;/code&gt;&lt;/th&gt;&#10; &lt;td&gt;&lt;/td&gt;&#10; &lt;td&gt;Functions, tags, and attributes&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;/tbody&gt;&#10;&lt;/table&gt;</description></item><item><title>Blog Renovation - From Jekyll to Hugo</title><link>https://pwzxxm.com/blog-renovation/</link><pubDate>Sun, 27 Dec 2020 14:43:36 +1100</pubDate><guid>https://pwzxxm.com/blog-renovation/</guid><description>&lt;p&gt;In the past years, the blog was generated using &lt;a href="https://jekyllrb.com/"&gt;Jekyll&lt;/a&gt;.&#10;Recently, I decided to migrate to &lt;a href="https://gohugo.io/"&gt;Hugo&lt;/a&gt; along with other changes, such as utilising discussion plugin &lt;a href="https://valine.js.org/"&gt;Valine&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Using Jekyll + Github Pages to build a blog</title><link>https://pwzxxm.com/building-blog-jekyll/</link><pubDate>Tue, 15 Dec 2015 00:00:00 +0000</pubDate><guid>https://pwzxxm.com/building-blog-jekyll/</guid><description>&lt;h2 id="why-jekyll-and-github-pages"&gt;Why Jekyll and Github Pages&lt;/h2&gt;&#10;&lt;p&gt;&lt;a href="https://jekyllrb.com/"&gt;Jekyll&lt;/a&gt; is an static site generator, it is simple to use with YAML front matter. It is quite convenient to blog with markdown and Jekyll supports it build-in. &lt;a href="https://pages.github.com/"&gt;Github Pages&lt;/a&gt; provide the space to host the website for free. Both of them are well-documented, and works well with each other. One thing that makes they works well but not perfect is that although Github Pages can generate the website using Jekyll but as it generates in safe mode, it does not support Jekyll plugin. However, the good news is we can generate the site locally and then push it to Github. It sounds like not convenient but we can write a bash script to do so automatically in one step. We will talk about it later.&lt;/p&gt;</description></item><item><title>The Story About the Blog</title><link>https://pwzxxm.com/the-story-about-the-blog/</link><pubDate>Sat, 12 Dec 2015 00:00:00 +0000</pubDate><guid>https://pwzxxm.com/the-story-about-the-blog/</guid><description>&lt;p&gt;&lt;a href="https://www.pwzxxm.com"&gt;PwzXxm&lt;/a&gt; is my first blog and also my first website I have ever built. I knew only a little bit of HTML before I started this project. I learned CSS and JavaScript while I&amp;rsquo;m building the site. I also read a lot of source code and blog posts about how other people build their own site using &lt;a href="http://jekyllrb.com/"&gt;Jekyll&lt;/a&gt;. It took me seven days. Finally, on the 10th of December, 2015, the site went alive.&lt;/p&gt;</description></item></channel></rss>