<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Hugo on Solarized Sublime Sekai</title>
    <link>https://vincenttam.gitlab.io/tags/hugo/</link>
    <description>Recent content in Hugo on Solarized Sublime Sekai</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Wed, 05 Aug 2026 11:08:26 +0200</lastBuildDate>
    <atom:link href="https://vincenttam.gitlab.io/tags/hugo/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Upgraded to Hugo v0.135</title>
      <link>https://vincenttam.gitlab.io/post/2024-10-07-upgraded-to-hugo-v0135/</link>
      <pubDate>Mon, 07 Oct 2024 13:05:16 +0200</pubDate>
      <guid>https://vincenttam.gitlab.io/post/2024-10-07-upgraded-to-hugo-v0135/</guid>
      <description>&lt;h1 id=&#34;background&#34;&gt;Background&lt;/h1&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;18 months ago, I used &lt;code&gt;latest&lt;/code&gt;&#xA;&lt;a href=&#34;https://gitlab.com/pages/hugo/container_registry/574432&#34;&gt;Docker image in GitLab container resgitry for Hugo extended&lt;/a&gt; at&#xA;commit &lt;a href=&#34;https://gitlab.com/VincentTam/vincenttam.gitlab.io/-/commit/168fe3d&#34;&gt;168fe3d&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Six years ago, I &lt;a href=&#34;https://vincenttam.gitlab.io/post/2018-09-16-staticman-powered-gitlab-pages/1/&#34;&gt;integrated static comments to this blog&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Last week end, when my friend tested static comments here, she reported that&#xA;&lt;a href=&#34;https://gitlab.com/staticmanlab&#34;&gt;@StaticmanLab&amp;rsquo;s&lt;/a&gt; GitLab token had been expired.  As a result, I&#xA;updated it and re-deployed my &lt;a href=&#34;https://staticman.net/&#34;&gt;Staticman&lt;/a&gt; instance.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h1 id=&#34;problem&#34;&gt;Problem&lt;/h1&gt;&#xA;&lt;p&gt;I wrote &lt;a href=&#34;https://vincenttam.gitlab.io/post/2023-10-08-exponential-function-series-definition/#comment-1r1&#34;&gt;a sample comment containing math equations&lt;/a&gt; to test if it&amp;rsquo;s&#xA;still working.  The back-end processes were fine, but the site rebuilding wasn&amp;rsquo;t&#xA;successful, as commit &lt;a href=&#34;https://gitlab.com/VincentTam/vincenttam.gitlab.io/-/commit/c531a0b&#34;&gt;c531a0b&lt;/a&gt; reveals.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Fixed Archetype Error for This Site</title>
      <link>https://vincenttam.gitlab.io/post/2023-04-11-fixed-archetype-error-for-this-site/</link>
      <pubDate>Tue, 11 Apr 2023 15:51:05 +0200</pubDate>
      <guid>https://vincenttam.gitlab.io/post/2023-04-11-fixed-archetype-error-for-this-site/</guid>
      <description>&lt;h3 id=&#34;background&#34;&gt;Background&lt;/h3&gt;&#xA;&lt;p&gt;In &lt;a href=&#34;https://vincenttam.gitlab.io/post/2019-08-10-customized-archetype-for-this-site/&#34;&gt;&lt;em&gt;Customized Archetype for This Site&lt;/em&gt;&lt;/a&gt;, I was using&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;{{ slicestr .Name 11 | humanize | title }}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;in the &lt;code&gt;title&lt;/code&gt; attribute in my site&amp;rsquo;s &lt;code&gt;archetypes/default.md&lt;/code&gt;, so that the first&#xA;11 characters (&lt;code&gt;YYYY-MM-DD-&lt;/code&gt;) would be taken out if I type this command.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;$ hugo new post/$(date -I)-&amp;lt;MY_POST_TITLE&amp;gt;.md&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;In practice, &lt;code&gt;&amp;lt;MY_POST_TITLE&amp;gt;&lt;/code&gt; can be replaced to any title, like&#xA;&lt;code&gt;my-post-title&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;h3 id=&#34;problem&#34;&gt;Problem&lt;/h3&gt;&#xA;&lt;p&gt;I wanted to create &lt;a href=&#34;https://vincenttam.gitlab.io/page/intellij/&#34;&gt;my IntelliJ cheatsheet&lt;/a&gt;, so I typed this command.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Upgrade Font Awesome in Beautiful Hugo Theme</title>
      <link>https://vincenttam.gitlab.io/post/2022-06-07-upgrade-font-awesome-in-beautiful-hugo-theme/</link>
      <pubDate>Tue, 07 Jun 2022 13:02:33 +0200</pubDate>
      <guid>https://vincenttam.gitlab.io/post/2022-06-07-upgrade-font-awesome-in-beautiful-hugo-theme/</guid>
      <description>&lt;h3 id=&#34;background&#34;&gt;Background&lt;/h3&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://github.com/halogenica/beautifulhugo/&#34;&gt;Beautiful Hugo&lt;/a&gt; comes with Font Awesome icons.  However, it seems that it&amp;rsquo;s&#xA;no longer maintained.&lt;/p&gt;&#xA;&lt;h3 id=&#34;goal&#34;&gt;Goal&lt;/h3&gt;&#xA;&lt;p&gt;To upgrade Font Awesome to the current stable version (6.1.1).&lt;/p&gt;&#xA;&lt;h3 id=&#34;problem&#34;&gt;Problem&lt;/h3&gt;&#xA;&lt;p&gt;The &lt;a href=&#34;https://fontawesome.com/docs/web/setup/host-yourself/webfonts#add-font-awesome-files-to-your-project&#34;&gt;official guide for self-hosting Font Awesome Web Fonts + CSS&lt;/a&gt;&#xA;suggests users to place the following files&lt;/p&gt;&#xA;&lt;table&gt;&#xA;  &lt;thead&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;th style=&#34;text-align: left&#34;&gt;filepath&lt;/th&gt;&#xA;          &lt;th style=&#34;text-align: left&#34;&gt;role&lt;/th&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/thead&gt;&#xA;  &lt;tbody&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;/fontawesome/webfonts/&lt;/code&gt;&lt;/td&gt;&#xA;          &lt;td style=&#34;text-align: left&#34;&gt;Free Web Fonts&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td style=&#34;text-align: left&#34;&gt;&lt;code&gt;/fontawesome/css/all.min.css&lt;/code&gt;&lt;/td&gt;&#xA;          &lt;td style=&#34;text-align: left&#34;&gt;CSS file for using Free Web Fonts&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;p&gt;into somewhere in my theme.  The left column of the diagram features the folder&#xA;&lt;code&gt;assets/&lt;/code&gt;.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Deploy Hugo Theme exampleSite With Github Actions</title>
      <link>https://vincenttam.gitlab.io/post/2021-03-06-deploy-hugo-theme-examplesite-with-github-actions/</link>
      <pubDate>Sat, 06 Mar 2021 13:39:05 +0100</pubDate>
      <guid>https://vincenttam.gitlab.io/post/2021-03-06-deploy-hugo-theme-examplesite-with-github-actions/</guid>
      <description>&lt;h3 id=&#34;motivation&#34;&gt;Motivation&lt;/h3&gt;&#xA;&lt;p&gt;To test PRs on the upstream of a &lt;a href=&#34;https://themes.gohugo.io/&#34;&gt;Hugo theme&lt;/a&gt; by setting up a testing&#xA;branch.&lt;/p&gt;&#xA;&lt;h3 id=&#34;goal&#34;&gt;Goal&lt;/h3&gt;&#xA;&lt;p&gt;To deploy a forked GitHub repo for a Hugo theme with &lt;code&gt;exampleSite&lt;/code&gt; to GitHub&#xA;Pages using &lt;a href=&#34;https://github.com/features/actions&#34;&gt;GitHub Actions&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;The whole article is based on &lt;a href=&#34;https://github.com/VincentTam/hugo-future-imperfect-slim&#34;&gt;my fork of Hugo Future Imperfect Slim&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;h3 id=&#34;references&#34;&gt;References&lt;/h3&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://github.com/peaceiris/actions-hugo&#34;&gt;GitHub Actions for Hugo&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;A &lt;a href=&#34;https://stackoverflow.com/q/59383624/3184351&#34;&gt;Stack Overflow question showing &lt;code&gt;pwd&lt;/code&gt; in GitHub Actions&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;A &lt;a href=&#34;https://discourse.gohugo.io/t/how-do-i-do-theme-development-with-an-example-site-in-the-repo/2136/10&#34;&gt;Hugo Discourse post about testing &lt;code&gt;exampleSite&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h3 id=&#34;difficulties&#34;&gt;Difficulties&lt;/h3&gt;&#xA;&lt;p&gt;I had failed for about ten times before I got the job done.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Site Maintenance for Hugo v0.60</title>
      <link>https://vincenttam.gitlab.io/post/2020-04-14-site-maintenance-for-hugo-v060/</link>
      <pubDate>Tue, 14 Apr 2020 16:33:31 +0200</pubDate>
      <guid>https://vincenttam.gitlab.io/post/2020-04-14-site-maintenance-for-hugo-v060/</guid>
      <description>&lt;h3 id=&#34;background&#34;&gt;Background&lt;/h3&gt;&#xA;&lt;p&gt;I lacked motivation to keep &lt;a href=&#34;https://gitlab.com/VincentTam/beautifulhugo&#34;&gt;this tweaked theme&lt;/a&gt; up with &lt;a href=&#34;https;//gohugo.io&#34;&gt;Hugo&lt;/a&gt;&amp;rsquo;s&#xA;development after last summer.  When I came back yesterday, I saw that some&#xA;pages using &lt;a href=&#34;https://fontawesome.com&#34;&gt;Font Awesome&lt;/a&gt; icons were broken.  Apart from that, the&#xA;&lt;a href=&#34;https://vincenttam.gitlab.io/post/2018-09-17-fix-hugo-table-of-contents/&#34;&gt;ToC list level problem&lt;/a&gt; resurfaced.&lt;/p&gt;&#xA;&lt;h3 id=&#34;fixed-toc&#34;&gt;Fixed ToC&lt;/h3&gt;&#xA;&lt;p&gt;The &lt;a href=&#34;https://vincenttam.gitlab.io/post/2018-09-27-better-hugo-toc-fix/&#34;&gt;solution that I had adopted&lt;/a&gt; no longer worked.  Luckily, some&#xA;users provided a shorter code in the later discussions.  The&#xA;&lt;a href=&#34;https://github.com/gohugoio/hugo/issues/1778#issuecomment-483880269&#34;&gt;one from user501254&lt;/a&gt; caught me.  I first tried to copy his code into the&#xA;partial layout for ToC.  However, nothing changed.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Customized Archetype for This Site</title>
      <link>https://vincenttam.gitlab.io/post/2019-08-10-customized-archetype-for-this-site/</link>
      <pubDate>Sat, 10 Aug 2019 16:28:46 +0200</pubDate>
      <guid>https://vincenttam.gitlab.io/post/2019-08-10-customized-archetype-for-this-site/</guid>
      <description>&lt;h3 id=&#34;background&#34;&gt;Background&lt;/h3&gt;&#xA;&lt;p&gt;I prefer including the date into the Permalink of a post.  Everytime I create&#xA;a new post, I type&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;hugo new post/$(date -I)-post-title.md&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;to ensure that the date is correct.&lt;/p&gt;&#xA;&lt;h3 id=&#34;problem&#34;&gt;Problem&lt;/h3&gt;&#xA;&lt;p&gt;The &lt;code&gt;title&lt;/code&gt; field in the post&amp;rsquo;s front matter contained the date, which &lt;em&gt;wasn&amp;rsquo;t&lt;/em&gt;&#xA;something that I wanted because it&amp;rsquo;s already shown next to the&#xA;&lt;i class=&#34;fas fa-clock&#34; aria-hidden&gt;&lt;/i&gt; icon.&lt;/p&gt;&#xA;&lt;h3 id=&#34;observations&#34;&gt;Observations&lt;/h3&gt;&#xA;&lt;p&gt;Neither &lt;code&gt;\d&lt;/code&gt; nor &lt;code&gt;[\d]&lt;/code&gt; works for the PCRE character class &lt;code&gt;\d&lt;/code&gt;.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Icon in Hugo Navbar</title>
      <link>https://vincenttam.gitlab.io/post/2019-08-10-icon-in-hugo-navbar/</link>
      <pubDate>Sat, 10 Aug 2019 14:53:00 +0200</pubDate>
      <guid>https://vincenttam.gitlab.io/post/2019-08-10-icon-in-hugo-navbar/</guid>
      <description>&lt;h3 id=&#34;motivation&#34;&gt;Motivation&lt;/h3&gt;&#xA;&lt;p&gt;The original navbar in words took up half of the horizontal spaces of the&#xA;viewport.  I &lt;em&gt;couldn&amp;rsquo;t&lt;/em&gt; add new items like &amp;ldquo;&lt;strong&gt;Tags&lt;/strong&gt;&amp;rdquo; to display the tag list.&lt;/p&gt;&#xA;&lt;h3 id=&#34;work&#34;&gt;Work&lt;/h3&gt;&#xA;&lt;p&gt;Thanks to the &lt;code&gt;pre&lt;/code&gt; field in &lt;a href=&#34;https://gohugo.io/content-management/menus/&#34;&gt;Hugo Menus&lt;/a&gt;, one can easily add the icon&#xA;as an HTML element by &lt;a href=&#34;https://gitlab.com/VincentTam/vincenttam.gitlab.io/commit/0083a60e28d896ac7560bc7b9ceb6f44deb77825#6fbe99d7b7ed353c112a4a34023b89b2cc76230b&#34;&gt;some editing on the template file&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;{{ range .Site.Menus.main.ByWeight }}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  {{ if .HasChildren }}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &amp;lt;li class=&amp;#34;navlinks-container&amp;#34;&amp;gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      {{ if .Pre }}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &amp;lt;a class=&amp;#34;navlinks-parent&amp;#34; title=&amp;#34;{{ .Name }}&amp;#34;&amp;gt;{{ .Pre }}&amp;lt;/a&amp;gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      {{ else }}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &amp;lt;a class=&amp;#34;navlinks-parent&amp;#34;&amp;gt;{{ .Name }}&amp;lt;/a&amp;gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      {{ end }}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &amp;lt;div class=&amp;#34;navlinks-children&amp;#34;&amp;gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        {{ range .Children }}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;          {{ if .Pre }}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;            &amp;lt;a title=&amp;#34;{{ .Name }}&amp;#34; href=&amp;#34;{{ .URL | relLangURL }}&amp;#34;&amp;gt;{{ .Pre }}&amp;lt;/a&amp;gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;          {{ else }}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;            &amp;lt;a href=&amp;#34;{{ .URL  | relLangURL }}&amp;#34;&amp;gt;{{ .Name }}&amp;lt;/a&amp;gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;          {{ end }}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        {{ end }}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &amp;lt;/div&amp;gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &amp;lt;/li&amp;gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  {{ else }}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &amp;lt;li&amp;gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      {{ if .Pre }}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &amp;lt;a title=&amp;#34;{{ .Name }}&amp;#34; href=&amp;#34;{{ .URL | relLangURL }}&amp;#34;&amp;gt;{{ .Pre }}&amp;lt;/a&amp;gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      {{ else }}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &amp;lt;a href=&amp;#34;{{ .URL | relLangURL }}&amp;#34;&amp;gt;{{ .Name }}&amp;lt;/a&amp;gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      {{ end }}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &amp;lt;/li&amp;gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  {{ end }}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;{{ end }}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>Staticman With Introduction Theme</title>
      <link>https://vincenttam.gitlab.io/post/2019-08-02-staticman-with-introduction-theme/</link>
      <pubDate>Fri, 02 Aug 2019 19:01:07 +0200</pubDate>
      <guid>https://vincenttam.gitlab.io/post/2019-08-02-staticman-with-introduction-theme/</guid>
      <description>&lt;h3 id=&#34;goal&#34;&gt;Goal&lt;/h3&gt;&#xA;&lt;p&gt;To port &lt;a href=&#34;https://lstu.fr/hg&#34;&gt;Huginn&lt;/a&gt;&amp;rsquo;s &lt;a href=&#34;https://staticman.net&#34;&gt;Staticman&lt;/a&gt; integration to &lt;a href=&#34;https://lstu.fr/ism0&#34;&gt;Introduction&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;h3 id=&#34;difficulties&#34;&gt;Difficulties&lt;/h3&gt;&#xA;&lt;p&gt;I&amp;rsquo;ve used some class names from &lt;a href=&#34;https://github.com/mmistakes/minimal-mistakes/&#34;&gt;Minimal Mistakes&lt;/a&gt; since the&#xA;&lt;a href=&#34;https://github.com/halogenica/beautifulhugo/blob/8f3b0c3296ebb04fdb76b95d7af23787657d8ea8/static/js/staticman.js#L11-L39&#34;&gt;modals in the original code&lt;/a&gt; clashes with &lt;a href=&#34;https://lstu.fr/ism0&#34;&gt;Introduction&lt;/a&gt;&amp;rsquo;s mobile&#xA;responsive card display for projects.  If I had know the practice of prepending&#xA;a CSS class to avoid overiding the CSS properties of other components of a web&#xA;site, I wouldn&amp;rsquo;t have mixed this Jekyll theme with my&#xA;&lt;a href=&#34;https://vincenttam.gitlab.io/post/2018-11-17-nested-comments-in-beautiful-hugo/&#34;&gt;template for nested comments&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Due to my existing work on &lt;a href=&#34;https://github.com/victoriadrake/hugo-theme-introduction/blob/37c7cf12b8b24f1022cbd343d1781fb00d824a26/assets/sass/_staticman.sass&#34;&gt;my SASS file for Staticman + Introduction&lt;/a&gt;,&#xA;I had decided to continue working with the class names in this SASS file.&#xA;Changing the CSS class names in the JS script was easier than doing so in the&#xA;SASS file since I was more familiar with the former.&lt;/p&gt;</description>
    </item>
    <item>
      <title>More Static Nested Comments</title>
      <link>https://vincenttam.gitlab.io/post/2019-07-30-more-static-nested-comments/</link>
      <pubDate>Tue, 30 Jul 2019 21:05:35 +0200</pubDate>
      <guid>https://vincenttam.gitlab.io/post/2019-07-30-more-static-nested-comments/</guid>
      <description>&lt;h3 id=&#34;background&#34;&gt;Background&lt;/h3&gt;&#xA;&lt;p&gt;I&amp;rsquo;ve made &lt;a href=&#34;https://vincenttam.gitlab.io/post/2018-11-17-nested-comments-in-beautiful-hugo/&#34;&gt;nested comment support for Beautiful Hugo&lt;/a&gt;, which I&amp;rsquo;ve ported to&#xA;other &lt;a href=&#34;https://gohugo.io&#34;&gt;Hugo&lt;/a&gt; themes like &lt;a href=&#34;https://github.com/victoriadrake/hugo-theme-introduction/pull/119&#34;&gt;Introduction&lt;/a&gt;, &lt;a href=&#34;https://github.com/htr3n/hyde-hyde/pull/58&#34;&gt;Hyde-hyde&lt;/a&gt;, &lt;a href=&#34;https://framagit.org/staticman-gitlab-pages&#34;&gt;etc&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;h3 id=&#34;problem-i&#34;&gt;Problem I&lt;/h3&gt;&#xA;&lt;p&gt;Some of those &lt;a href=&#34;https://themes.gohugo.io/&#34;&gt;Hugo themes&lt;/a&gt; that I worked with did show the HTML form, but&#xA;the CSS styles were gone on the GitLab Pages.&lt;/p&gt;&#xA;&lt;h3 id=&#34;reason-i&#34;&gt;Reason I&lt;/h3&gt;&#xA;&lt;p&gt;This is due to the lack of &lt;code&gt;resources/_gen/&lt;/code&gt; in the indexed repo for themes&#xA;making use of &lt;code&gt;assets/&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;h3 id=&#34;solution-i&#34;&gt;Solution I&lt;/h3&gt;&#xA;&lt;ol start=&#34;0&#34;&gt;&#xA;&lt;li&gt;Check that you have the required prerequisites.  For example,&#xA;&lt;a href=&#34;https://github.com/victoriadrake/hugo-theme-introduction/&#34;&gt;Introduction&lt;/a&gt; requires &lt;a href=&#34;https://github.com/postcss/autoprefixer&#34;&gt;autoprefixer&lt;/a&gt; and &lt;a href=&#34;https://github.com/postcss/postcss-cli&#34;&gt;postcss-cli&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Update submodule for the theme in the directory holding the source code of&#xA;the static site.&lt;/li&gt;&#xA;&lt;li&gt;Type &lt;code&gt;hugo [server]&lt;/code&gt; so that the resources are locally generated.&lt;/li&gt;&#xA;&lt;li&gt;Push the repo.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h3 id=&#34;problem-ii&#34;&gt;Problem II&lt;/h3&gt;&#xA;&lt;p&gt;The approach in my linked blog post is too complicated.  It makes use of a mix&#xA;of JavaScript and &lt;a href=&#34;https://gohugo.io&#34;&gt;Hugo&lt;/a&gt; template.  This can be hard to comprehend and port,&#xA;since the file structure for JavaScripts isn&amp;rsquo;t the same in different themes.&#xA;It&amp;rsquo;s better to make the internal referencing for nested comment display entirely&#xA;in Hugo.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Huginn Theme With Staticman</title>
      <link>https://vincenttam.gitlab.io/post/2019-05-19-huginn-theme-with-staticman/</link>
      <pubDate>Sun, 19 May 2019 19:26:28 +0200</pubDate>
      <guid>https://vincenttam.gitlab.io/post/2019-05-19-huginn-theme-with-staticman/</guid>
      <description>&lt;h3 id=&#34;goal&#34;&gt;Goal&lt;/h3&gt;&#xA;&lt;p&gt;To provide &lt;a href=&#34;https://staticman.net/&#34;&gt;Staticman&lt;/a&gt; support to the &lt;a href=&#34;https://gohugo.io/&#34;&gt;Hugo&lt;/a&gt; theme &lt;a href=&#34;https://framagit.org/Bridouz/hugo-theme-huginn&#34;&gt;Huginn&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;h3 id=&#34;motivation&#34;&gt;Motivation&lt;/h3&gt;&#xA;&lt;p&gt;A &lt;a href=&#34;https://framagit.org/&#34;&gt;Framagit&lt;/a&gt; user tried &lt;a href=&#34;https://framagit.org/Bridouz/bridouz.frama.io/commit/f01aca4e3267d87d15057ca596554b3a190bd45f&#34;&gt;using the public GitLab instance&lt;/a&gt; but failed.&#xA;Finally, he removed &lt;a href=&#34;https://staticman.net/&#34;&gt;Staticman&lt;/a&gt; from his site and his &lt;a href=&#34;https://framagit.org/Bridouz/hugo-theme-huginn&#34;&gt;Hugo theme&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;If I had been notified, I would have explained that that was due to the&#xA;constraint of &lt;code&gt;gitlabBaseUrl&lt;/code&gt;, which could only take &lt;em&gt;one&lt;/em&gt; GitLab instance.&lt;/p&gt;&#xA;&lt;p&gt;In response to demand for &lt;a href=&#34;https://staticman.net/&#34;&gt;Staticman&lt;/a&gt; from &lt;a href=&#34;https://framagit.org/&#34;&gt;Framagit&lt;/a&gt; users, I set up&#xA;&lt;a href=&#34;https://staticman-frama.herokuapp.com/&#34;&gt;another GitLab instance&lt;/a&gt; of Staticman API and forked some Hugo/Jekyll repo&#xA;under the project page &lt;a href=&#34;https://framagit.org/staticman-gitlab-pages&#34;&gt;Staticman et GitLab Pages&lt;/a&gt;.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Improved Integration of Hugo and $\KaTeX$</title>
      <link>https://vincenttam.gitlab.io/post/2019-04-29-improved-integration-of-hugo-and-katex/</link>
      <pubDate>Mon, 29 Apr 2019 09:48:32 +0200</pubDate>
      <guid>https://vincenttam.gitlab.io/post/2019-04-29-improved-integration-of-hugo-and-katex/</guid>
      <description>&lt;h3 id=&#34;problem&#34;&gt;Problem&lt;/h3&gt;&#xA;&lt;p&gt;There&amp;rsquo;s &lt;em&gt;no&lt;/em&gt; &lt;a href=&#34;https://vincenttam.gitlab.io/post/2018-09-27-custom-katex-macros/&#34;&gt;custom $\KaTeX$ macro&lt;/a&gt; in local preview since I&amp;rsquo;ve merged some&#xA;recent commits from the upstream of this blog&amp;rsquo;s theme, in particular,&#xA;&lt;a href=&#34;//github.com/halogenica/beautifulhugo/&#34;&gt;Beautiful Hugo&lt;/a&gt;&amp;rsquo;s pull requests &lt;a href=&#34;//github.com/halogenica/beautifulhugo/pull/246&#34;&gt;#246&lt;/a&gt; and &lt;a href=&#34;//github.com/halogenica/beautifulhugo/pull/255&#34;&gt;#255&lt;/a&gt;, which allowed&#xA;&lt;em&gt;self-hosting the theme&amp;rsquo;s static JS, CSS and font files&lt;/em&gt;.  This self-hosted&#xA;option is particularly useful in case of &lt;em&gt;slow response from &lt;a href=&#34;//www.cloudflare.com/&#34;&gt;Cloudflare&lt;/a&gt;&amp;rsquo;s&#xA;CDN&lt;/em&gt;.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;preview.png&#34; alt=&#34;hugo local preview no KaTeX macro&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;public1.png&#34; alt=&#34;public Hugo blog KaTeX auto-renderer error&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;Even they &lt;em&gt;do&lt;/em&gt; appear on the public GitLab site, the final rendered Markdown +&#xA;$\TeX$ code would be succumb to syntax errors due to their absence in the&#xA;preview process.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Replacing Deprecated Hugo Syntax in Blog Theme</title>
      <link>https://vincenttam.gitlab.io/post/2019-04-25-replacing-deprecated-hugo-syntax-in-blog-theme/</link>
      <pubDate>Thu, 25 Apr 2019 12:45:08 +0200</pubDate>
      <guid>https://vincenttam.gitlab.io/post/2019-04-25-replacing-deprecated-hugo-syntax-in-blog-theme/</guid>
      <description>&lt;h1 id=&#34;problem&#34;&gt;Problem&lt;/h1&gt;&#xA;&lt;p&gt;Since the recent Hugo upgrade to v0.55.3, the following messages popped up after&#xA;each local site regeneration with &lt;code&gt;hugo server&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;WARN 2019/04/24 18:07:00 Page&amp;#39;s .URL is deprecated and will be removed in a futu&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;re release. Use .Permalink or .RelPermalink. If what you want is the front matte&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;r URL value, use .Params.url.&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;WARN 2019/04/24 18:07:00 Page&amp;#39;s .Hugo is deprecated and will be removed in a fut&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;ure release. Use the global hugo function.&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;WARN 2019/04/24 18:07:00 Page&amp;#39;s .RSSLink is deprecated and will be removed in a &#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;future release. Use the Output Format&amp;#39;s link, e.g. something like: &#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    {{ with .OutputFormats.Get &amp;#34;RSS&amp;#34; }}{{ .RelPermalink }}{{ end }}.&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Total in 136 ms&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;a href=&#34;https://gitlab.com/VincentTam/vincenttam.gitlab.io/-/jobs/201796830&#34;&gt;GitLab&amp;rsquo;s online runner&lt;/a&gt; also gave the &lt;em&gt;same&lt;/em&gt; type of warnings.  This was&#xA;reported in &lt;a href=&#34;https://github.com/halogenica/beautifulhugo/issues/261&#34;&gt;Beautiful Hugo issue #261&lt;/a&gt;.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Comparaison of Two Docker Images for Hugo</title>
      <link>https://vincenttam.gitlab.io/post/2018-12-21-comparaison-of-two-docker-images-for-hugo/</link>
      <pubDate>Fri, 21 Dec 2018 21:56:57 +0100</pubDate>
      <guid>https://vincenttam.gitlab.io/post/2018-12-21-comparaison-of-two-docker-images-for-hugo/</guid>
      <description>&lt;p&gt;Having importing the repo for the &lt;a href=&#34;https://gohugo.io/&#34;&gt;Hugo&lt;/a&gt; theme &lt;a href=&#34;https://themes.gohugo.io/theme/hugo-theme-introduction/&#34;&gt;Introduction&lt;/a&gt; from &lt;a href=&#34;https://github.com/&#34;&gt;GitHub&lt;/a&gt; to&#xA;&lt;a href=&#34;https://gitlab.com/&#34;&gt;GitLab&lt;/a&gt;, I added the automatically generated GitLab CI config file and I ran&#xA;&lt;a href=&#34;https://gitlab.com/VincentTam/introduction/-/jobs/135854407&#34;&gt;job #135854407&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$ cd exampleSite&#xA;$ hugo --themesDir=../.. -d ../public&#xA;hugo: /usr/lib/libstdc++.so.6: no version information available (required by hugo)&#xA;hugo: /usr/lib/libstdc++.so.6: no version information available (required by hugo)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The build succeeded with the above message.  To suppress it,&#xA;&lt;a href=&#34;https://gitlab.com/VincentTam/introduction/-/jobs/136398450&#34;&gt;a switch to another CI runner&lt;/a&gt; will do.  The associated GitLab CI&#xA;config file was copied from &lt;a href=&#34;https://gohugo.io/&#34;&gt;Hugo&lt;/a&gt;&amp;rsquo;s documentation with&#xA;&lt;a href=&#34;https://gitlab.com/VincentTam/introduction/commit/4106d736e046d8e798034e9619b163e80adc67e5&#34;&gt;some customizations for Hugo sample sites&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Staticman Lab New Logos</title>
      <link>https://vincenttam.gitlab.io/post/2018-11-21-staticmanlab-new-logos/</link>
      <pubDate>Wed, 21 Nov 2018 08:31:23 +0100</pubDate>
      <guid>https://vincenttam.gitlab.io/post/2018-11-21-staticmanlab-new-logos/</guid>
      <description>&lt;link rel=&#34;stylesheet&#34; href=&#34;https://vincenttam.gitlab.io/css/hugo-easy-gallery.css&#34; /&gt;&#xA;&lt;div class=&#34;box&#34; &gt;&#xA;  &lt;figure  itemprop=&#34;associatedMedia&#34; itemscope itemtype=&#34;http://schema.org/ImageObject&#34;&gt;&#xA;    &lt;div class=&#34;img&#34;&gt;&#xA;      &lt;img itemprop=&#34;thumbnail&#34; src=&#34;https://vincenttam.gitlab.io/img/staticmanlab.svg&#34; alt=&#34;StaticmanLab new logo&#34;/&gt;&#xA;    &lt;/div&gt;&#xA;    &lt;a href=&#34;https://vincenttam.gitlab.io/img/staticmanlab.svg&#34; itemprop=&#34;contentUrl&#34;&gt;&lt;/a&gt;&#xA;      &lt;figcaption&gt;&lt;h4&gt;StaticmanLab&amp;#39;s new logo&lt;/h4&gt;&#xA;          &lt;p&gt;GitLab logo recreated from Wikimedia&amp;#39;s logo by Darby under CC-BY-SA 4.0 and Staticman logo on GitHub by Erlen Masson under MIT.&lt;/p&gt;&#xA;      &lt;/figcaption&gt;&#xA;  &lt;/figure&gt;&#xA;&lt;/div&gt;&#xA;&#xA;&lt;p&gt;The old icon for &lt;a href=&#34;https://gitlab.com/staticmanlab&#34;&gt;Staticman Lab&lt;/a&gt; was made by GIMP from Staticman&amp;rsquo;s&#xA;icon in PNG in the GitHub repo.  Recently, I&amp;rsquo;ve found the SVG version of this&#xA;icon.  To serve customers better, I&amp;rsquo;ve recreated the logo from this SVG file so&#xA;that the edges in the logo become sharper.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Nested Comments in Beautiful Hugo</title>
      <link>https://vincenttam.gitlab.io/post/2018-11-17-nested-comments-in-beautiful-hugo/</link>
      <pubDate>Sat, 17 Nov 2018 15:12:50 +0100</pubDate>
      <guid>https://vincenttam.gitlab.io/post/2018-11-17-nested-comments-in-beautiful-hugo/</guid>
      <description>&lt;h3 id=&#34;quick-links&#34;&gt;Quick links&lt;/h3&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://vincenttam.gitlab.io/bhdemo&#34;&gt;A minimal demo site on GitLab&lt;/a&gt; (&lt;a href=&#34;https://gitlab.com/vincenttam/bhdemo&#34;&gt;Source&lt;/a&gt;)&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://github.com/halogenica/beautifulhugo/pull/222&#34;&gt;Beautiful Hugo pull request 222&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://github.com/VincentTam/beautifulhugo/releases/tag/reply-rc1.1&#34;&gt;Pre-release notes for this pull request&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h3 id=&#34;motivation&#34;&gt;Motivation&lt;/h3&gt;&#xA;&lt;p&gt;For the mathematical ones, please see &lt;a href=&#34;https://vincenttam.gitlab.io/post/2018-11-17-interactive-blog-on-static-web-host/&#34;&gt;my previous post&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;As a math student, it&amp;rsquo;s &lt;em&gt;inefficient&lt;/em&gt; to reinvent the wheel like engineering&#xA;students.  Thanks to three existing examples, I had convinced myself that I&#xA;could bring this to the theme &lt;a href=&#34;https://themes.gohugo.io/beautifulhugo/&#34;&gt;Beautiful Hugo&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://zongren.me/&#34;&gt;Zongren&amp;rsquo;s Hexo theme&lt;/a&gt; (worked best)&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://mademistakes.com/&#34;&gt;Made Mistakes&lt;/a&gt; Jekyll theme&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://networkhobo.com/&#34;&gt;Network Hobo&amp;rsquo;s customization of Beautiful Hugo&lt;/a&gt; (inspired by the second&#xA;one, but contains a logic error)&lt;/p&gt;</description>
    </item>
    <item>
      <title>Interactive Blog on Static Web Host</title>
      <link>https://vincenttam.gitlab.io/post/2018-11-17-interactive-blog-on-static-web-host/</link>
      <pubDate>Sat, 17 Nov 2018 10:09:12 +0100</pubDate>
      <guid>https://vincenttam.gitlab.io/post/2018-11-17-interactive-blog-on-static-web-host/</guid>
      <description>&lt;h3 id=&#34;vision&#34;&gt;Vision&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;gain autonomy: freedom is the basis of moral actions.  No freedom, no&#xA;morality.&lt;/li&gt;&#xA;&lt;li&gt;transcend ourselves: change/improve our lives through free thoughts&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;goal&#34;&gt;Goal&lt;/h3&gt;&#xA;&lt;p&gt;Convert our free thoughts into free code.&lt;/p&gt;&#xA;&lt;p&gt;Free code allows users around the world to run and/or improve them.  This would&#xA;bring real enhancement to our tools.&lt;/p&gt;&#xA;&lt;p&gt;For example, beautiful math writing used to be a complicated process.  A decade&#xA;ago, this required the installation of a typesetting engine called $\LaTeX$.&#xA;Thanks to freely available scripts like &lt;a href=&#34;https://www.mathjax.org/&#34;&gt;MathJax&lt;/a&gt; and &lt;a href=&#34;https://katex.org/&#34;&gt;$\KaTeX$&lt;/a&gt;, it&amp;rsquo;s now&#xA;possible to write math viewable by any modern web browser by writing the content&#xA;in the middle.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Custom $\KaTeX$ Macros</title>
      <link>https://vincenttam.gitlab.io/post/2018-09-27-custom-katex-macros/</link>
      <pubDate>Thu, 27 Sep 2018 19:32:58 +0200</pubDate>
      <guid>https://vincenttam.gitlab.io/post/2018-09-27-custom-katex-macros/</guid>
      <description>&lt;h3 id=&#34;background&#34;&gt;Background&lt;/h3&gt;&#xA;&lt;p&gt;Same as &lt;a href=&#34;https://vincenttam.gitlab.io/post/2018-09-12-beautiful-hugo-improvements/&#34;&gt;the last section in &lt;em&gt;Beautiful Hugo Improvements&lt;/em&gt;&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;h3 id=&#34;goal&#34;&gt;Goal&lt;/h3&gt;&#xA;&lt;p&gt;To write math efficiently by automatically loading longer code with shorter&#xA;macro code.&lt;/p&gt;&#xA;&lt;p&gt;For example, when I wrote &lt;a href=&#34;https://vincenttam.gitlab.io/post/2018-09-25-some-infinite-cardinality-identities/&#34;&gt;&lt;em&gt;Some Infinite Cardinality Identities&lt;/em&gt;&lt;/a&gt;, it&#xA;would be ten times more quicker and efficient to type &lt;code&gt;\card{C}&lt;/code&gt; than to write&#xA;&lt;code&gt;\mathop{\mathrm{card}}(C)&lt;/code&gt; all the time.&lt;/p&gt;&#xA;&lt;h3 id=&#34;changes-committed-to-my-i-classfab-fa-git-aria-hiddeni-repo&#34;&gt;Changes committed to my &lt;i class=&#34;fab fa-git&#34; aria-hidden&gt;&lt;/i&gt; repo&lt;/h3&gt;&#xA;&lt;p&gt;The current version of &lt;a href=&#34;https://github.com/halogenica/beautifulhugo&#34;&gt;Beautiful Hugo&lt;/a&gt; is still using $\KaTeX$ v0.7,&#xA;which &lt;em&gt;doesn&amp;rsquo;t&lt;/em&gt; support macros in auto-rendering.  It would be &lt;em&gt;inconvenient&lt;/em&gt; to&#xA;include the macros after invoking $\KaTeX$&amp;rsquo;s &lt;code&gt;render&lt;/code&gt; function.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Better Hugo ToC Fix</title>
      <link>https://vincenttam.gitlab.io/post/2018-09-27-better-hugo-toc-fix/</link>
      <pubDate>Thu, 27 Sep 2018 18:56:40 +0200</pubDate>
      <guid>https://vincenttam.gitlab.io/post/2018-09-27-better-hugo-toc-fix/</guid>
      <description>&lt;h3 id=&#34;background&#34;&gt;Background&lt;/h3&gt;&#xA;&lt;p&gt;I applied &lt;a href=&#34;https://vincenttam.gitlab.io/post/2018-09-17-fix-hugo-table-of-contents/&#34;&gt;a fix to Hugo&amp;rsquo;s ToC&lt;/a&gt; ten days ago.&lt;/p&gt;&#xA;&lt;h3 id=&#34;drawbacks&#34;&gt;Drawbacks&lt;/h3&gt;&#xA;&lt;p&gt;To make the script non-render blocking, one has to place it in the footer.&#xA;As a result, it takes about 0.2 seconds to remove the excess &lt;code&gt;&amp;lt;ul&amp;gt;&lt;/code&gt; tag.&lt;/p&gt;&#xA;&lt;h3 id=&#34;solution&#34;&gt;Solution&lt;/h3&gt;&#xA;&lt;p&gt;Thanks to &lt;a href=&#34;https://git.io/fAjiL&#34;&gt;Beej126&amp;rsquo;s Hugo template code&lt;/a&gt;, this site delivers table of&#xA;contents processed by &lt;a href=&#34;https://gohugo.io/&#34;&gt;Hugo&lt;/a&gt; during &lt;a href=&#34;https://gitlab.com/&#34;&gt;GitLab&lt;/a&gt;&amp;rsquo;s continuous deployment.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Fix Hugo Table of Contents</title>
      <link>https://vincenttam.gitlab.io/post/2018-09-17-fix-hugo-table-of-contents/</link>
      <pubDate>Mon, 17 Sep 2018 12:31:03 +0200</pubDate>
      <guid>https://vincenttam.gitlab.io/post/2018-09-17-fix-hugo-table-of-contents/</guid>
      <description>&lt;h3 id=&#34;background-tldr&#34;&gt;Background (TL;DR)&lt;/h3&gt;&#xA;&lt;p&gt;While setting up the &lt;em&gt;new&lt;/em&gt; version of &lt;a href=&#34;https://staticman.net&#34;&gt;Staticman&lt;/a&gt; for&#xA;&lt;a href=&#34;https://vincenttam.gitlab.io/test-hugo-staticman&#34;&gt;my demo GitLab pages&lt;/a&gt;, I&amp;rsquo;ve read &lt;a href=&#34;https://staticman.net/docs&#34;&gt;developers&amp;rsquo; documentations&lt;/a&gt;,&#xA;&lt;a href=&#34;https://github.com/eduardoboucas/staticman/pull/219#issuecomment-417857360&#34;&gt;setup guide&lt;/a&gt; and some &lt;em&gt;community&lt;/em&gt; blog posts so as to come up with&#xA;&lt;a href=&#34;https://vincenttam.gitlab.io/post/2018-09-16-staticman-powered-gitlab-pages/1/&#34;&gt;my own guide&lt;/a&gt;.  It&amp;rsquo;s originated and inspired from a variety of sources,&#xA;and refined according to hours of testing.  Consequently, despite the original&#xA;intention to keep things simple, I&amp;rsquo;ve finally come up with a post with over a&#xA;thousand words.&lt;/p&gt;&#xA;&lt;p&gt;To pass my ideas in this post to visitors, it&amp;rsquo;s better that they have an&#xA;&lt;em&gt;overview&lt;/em&gt; of the contents before actually looking into the details.  Therefore,&#xA;a table of contents is nice-to-have feature for this blog.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Beautiful Hugo Improvements</title>
      <link>https://vincenttam.gitlab.io/post/2018-09-12-beautiful-hugo-improvements/</link>
      <pubDate>Wed, 12 Sep 2018 09:17:39 +0200</pubDate>
      <guid>https://vincenttam.gitlab.io/post/2018-09-12-beautiful-hugo-improvements/</guid>
      <description>&lt;h3 id=&#34;fixed-issue-142&#34;&gt;Fixed issue #142&lt;/h3&gt;&#xA;&lt;p&gt;Two weeks ago, &lt;a href=&#34;https://www.google.com/webmasters/&#34;&gt;Google Webmasters&lt;/a&gt; complained about the broken urls in this&#xA;blog&amp;rsquo;s &lt;a href=&#34;https://vincenttam.gitlab.io/tags&#34;&gt;Tags&lt;/a&gt; page.  This was reported by Joakim Vivas as&#xA;&lt;a href=&#34;https://github.com/halogenica/beautifulhugo/issues/142&#34;&gt;issue #142&lt;/a&gt; half a year ago.  Pascal had submitted&#xA;&lt;a href=&#34;https://github.com/halogenica/beautifulhugo/pull/165&#34;&gt;pull request #165&lt;/a&gt; to fix this.  However, he &lt;em&gt;self-closed&lt;/em&gt; his PR.&lt;/p&gt;&#xA;&lt;p&gt;Since the last commit by Michael Romero, &lt;a href=&#34;https://github.com/halogenica/beautifulhugo&#34;&gt;Beautiful Hugo&lt;/a&gt;&amp;rsquo;s owner, was&#xA;&lt;em&gt;five&lt;/em&gt; months ago, it seems that he has &lt;em&gt;abandonned&lt;/em&gt; his project.  Therefore, I&#xA;used &lt;a href=&#34;https://github.com/halogenica/beautifulhugo/issues/142#issuecomment-373466084&#34;&gt;Kaushal Modi&amp;rsquo;s solution&lt;/a&gt; to fix this at commit &lt;a href=&#34;https://gitlab.com/vincenttam/vincenttam.gitlab.io/tree/ff536782fecaa641949eeecae76816393a3aae11&#34;&gt;ff536782&lt;/a&gt;.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Brighten Image With GIMP</title>
      <link>https://vincenttam.gitlab.io/post/2018-08-23-brighten-image-with-gimp/</link>
      <pubDate>Thu, 23 Aug 2018 13:36:44 +0200</pubDate>
      <guid>https://vincenttam.gitlab.io/post/2018-08-23-brighten-image-with-gimp/</guid>
      <description>&lt;h3 id=&#34;motivation&#34;&gt;Motivation&lt;/h3&gt;&#xA;&lt;p&gt;One loves adding colors to his/her life by adding stunning photos to his/her&#xA;social media profile.  However, due to various constraints, such as weather,&#xA;budget and time, it&amp;rsquo;s possible that the photos taken look dark and somber.&lt;/p&gt;&#xA;&#xA;&lt;link rel=&#34;stylesheet&#34; href=&#34;https://vincenttam.gitlab.io/css/hugo-easy-gallery.css&#34; /&gt;&#xA;&lt;div class=&#34;box&#34; &gt;&#xA;  &lt;figure  itemprop=&#34;associatedMedia&#34; itemscope itemtype=&#34;http://schema.org/ImageObject&#34;&gt;&#xA;    &lt;div class=&#34;img&#34;&gt;&#xA;      &lt;img itemprop=&#34;thumbnail&#34; src=&#34;st-martine.jpg&#34; alt=&#34;Eglise St Martine à Pont-du-Château&#34;/&gt;&#xA;    &lt;/div&gt;&#xA;    &lt;a href=&#34;st-martine.jpg&#34; itemprop=&#34;contentUrl&#34;&gt;&lt;/a&gt;&#xA;      &lt;figcaption&gt;&lt;h4&gt;Eglise St Martine&lt;/h4&gt;&#xA;          &lt;p&gt;Photo taken at Pont-du-Château, Puy-de-Dôme (63) on 30th June, 2017&lt;/p&gt;&#xA;      &lt;/figcaption&gt;&#xA;  &lt;/figure&gt;&#xA;&lt;/div&gt;&#xA;&#xA;&lt;p&gt;Despite a suboptimal choice of camera angle, a right tool enables you to take&#xA;the best out of the photo.  Let&amp;rsquo;s go &lt;a href=&#34;https://www.gimp.org&#34;&gt;GIMP&lt;/a&gt;ing.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Hugo Image Path Refactoring</title>
      <link>https://vincenttam.gitlab.io/post/2018-07-14-hugo-image-path-refactoring/</link>
      <pubDate>Sat, 14 Jul 2018 14:18:28 +0200</pubDate>
      <guid>https://vincenttam.gitlab.io/post/2018-07-14-hugo-image-path-refactoring/</guid>
      <description>&lt;h3 id=&#34;goal&#34;&gt;Goal&lt;/h3&gt;&#xA;&lt;p&gt;To set up a reasonable content structure for my blog.&lt;/p&gt;&#xA;&lt;h3 id=&#34;before-hugo&#34;&gt;Before Hugo&lt;/h3&gt;&#xA;&lt;p&gt;In &lt;a href=&#34;https://git.io/vtblog&#34;&gt;my old Octopress blog&lt;/a&gt;, &lt;a href=&#34;https://github.com/VincentTam/vincenttam.github.io/tree/source/source/images/posts&#34;&gt;images&lt;/a&gt; and &lt;a href=&#34;https://github.com/VincentTam/vincenttam.github.io/tree/source/source/_posts&#34;&gt;posts&lt;/a&gt; were placed&#xA;under &lt;code&gt;source/images/posts&lt;/code&gt; and &lt;code&gt;source/_posts&lt;/code&gt; folders respectively.&#xA;They were so &lt;em&gt;far&lt;/em&gt; apart that I needed to use copy and paste the URL&amp;rsquo;s&#xA;so as to get them right.  As the size of the blog grew, I could hardly&#xA;retrieve an image without first listing the files in the post image&#xA;folder.  This significantly &lt;em&gt;reduced the efficiency&lt;/em&gt; of blog writing.&#xA;In my hometown, people take efficiency seriously.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Configure UFW for Hugo</title>
      <link>https://vincenttam.gitlab.io/post/2018-06-29-hugo-ufw/</link>
      <pubDate>Fri, 29 Jun 2018 06:36:21 +0200</pubDate>
      <guid>https://vincenttam.gitlab.io/post/2018-06-29-hugo-ufw/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;https://sites.google.com/site/easylinuxtipsproject/security#TOC-Firewall&#34;&gt;Easy Linux tips project&lt;/a&gt; recommends users to enable their&#xA;firewall.  However, this blocks all incoming traffic by default.  If&#xA;one wants to &lt;a href=&#34;https://vincenttam.github.io/blog/2016/08/21/website-preview-in-mobile-devices/&#34;&gt;test the site on mobile devices&lt;/a&gt;, one will need to&#xA;add a few rules to &lt;a href=&#34;https://launchpad.net/ufw&#34;&gt;UFW&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;$ sudo ufw allow ssh&#xA;$ sudo ufw allow http&#xA;$ sudo ufw allow https&#xA;$ sudo ufw allow 80/tcp&#xA;$ sudo ufw allow 1313/tcp comment &amp;quot;hugo server&amp;quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I learnt the last line from &lt;a href=&#34;https://xn--v6q832hwdkvom.com/post/ufw/#%E3%83%AB%E3%83%BC%E3%83%AB%E3%81%AB%E3%82%B3%E3%83%A1%E3%83%B3%E3%83%88%E3%82%92%E8%BF%BD%E5%8A%A0%E3%81%99%E3%82%8B%E3%81%AB%E3%81%AF&#34;&gt;竹内電設&lt;/a&gt;.&lt;/p&gt;</description>
    </item>
    <item>
      <title>My First Post</title>
      <link>https://vincenttam.gitlab.io/post/2018-06-24-my-first-post/</link>
      <pubDate>Sun, 24 Jun 2018 02:05:00 +0200</pubDate>
      <guid>https://vincenttam.gitlab.io/post/2018-06-24-my-first-post/</guid>
      <description>&lt;h3 id=&#34;introduction&#34;&gt;Introduction&lt;/h3&gt;&#xA;&lt;p&gt;Hello World!  This is my new GitLab page powered by Hugo.  I&amp;rsquo;m setting&#xA;up this blog to practise my math, foreign languages and IT skills.&lt;/p&gt;&#xA;&lt;h3 id=&#34;why-hugo&#34;&gt;Why Hugo?&lt;/h3&gt;&#xA;&lt;p&gt;My original goal is to set up a personal blog for posting math.&lt;/p&gt;&#xA;&lt;p&gt;I used to work with Octopress, but resolving the dependencies and&#xA;other technical issues  had actually took &lt;em&gt;much&lt;/em&gt; more time and effort&#xA;than expected.  As a result, I digressed a lot from my studies to look&#xA;into those problems.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
