<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Notes on David Feng</title>
    <link>https://davidfeng.us/notes/</link>
    <description>Recent content in Notes on David Feng</description>
    <generator>Hugo</generator>
    <language>en</language>
    <managingEditor>david.feng.ge@gmail.com (David Feng)</managingEditor>
    <webMaster>david.feng.ge@gmail.com (David Feng)</webMaster>
    <lastBuildDate>Fri, 10 Jul 2026 21:56:30 -0400</lastBuildDate>
    <atom:link href="https://davidfeng.us/notes/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Hugo</title>
      <link>https://davidfeng.us/notes/2026/07/hugo/</link>
      <pubDate>Fri, 10 Jul 2026 21:56:30 -0400</pubDate><author>david.feng.ge@gmail.com (David Feng)</author>
      <guid>https://davidfeng.us/notes/2026/07/hugo/</guid>
      <description>&lt;ul&gt;&#xA;&lt;li&gt;Quick Reference&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Create a new single page&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;hugo new posts/a/index.md&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;index.zh-cn.md&lt;/code&gt; for Chinese version&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;Local preview at  &lt;code&gt;localhost: 1313&lt;/code&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;hugo server&lt;/code&gt;  ( &lt;code&gt;-D&lt;/code&gt;  to include drafts)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;Update all submodules&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;git submodule init&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;git pull --recurse-submodules&lt;/code&gt; or &lt;code&gt;git submodule update --remote --merge&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;version&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;hugo version&lt;/code&gt; show current version&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;brew upgrade hugo&lt;/code&gt; upgrade to latest version&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;If a page bundle is Chinese only&#xA;&lt;ul&gt;&#xA;&lt;li&gt;no need to have index.md placeholder&lt;/li&gt;&#xA;&lt;li&gt;use &lt;code&gt;test.jpg&lt;/code&gt; in index.zh-cn.md to refer to the &lt;code&gt;test.zh-cn.jpg&lt;/code&gt; file&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;![](test.jpg)&lt;/code&gt; and &lt;code&gt;figure&lt;/code&gt; shortcode both work&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;doc style themes&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Learn &lt;a href=&#34;https://learn.netlify.app/en/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;https://learn.netlify.app/en/&lt;/a&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;good for linear tutorial&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;Doks &lt;a href=&#34;https://doks.netlify.app/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;https://doks.netlify.app/&lt;/a&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;contains both docs and blog session and look good&lt;/li&gt;&#xA;&lt;li&gt;search only shows page. no highlight within context.&lt;/li&gt;&#xA;&lt;li&gt;Next blog theme?! Sell myself as a product?&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;Book &lt;a href=&#34;https://hugo-book-demo.netlify.app/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;https://hugo-book-demo.netlify.app/&lt;/a&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;used to use this one. does not look that good&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;Geekdocs &lt;a href=&#34;https://geekdocs.de&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;https://geekdocs.de&lt;/a&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;similar to book but looks slightly nicer&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;Docsy &lt;a href=&#34;https://example.docsy.dev/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;https://example.docsy.dev/&lt;/a&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;comes from google. does not look that good.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;other options&#xA;&lt;ul&gt;&#xA;&lt;li&gt;GitBook&#xA;&lt;ul&gt;&#xA;&lt;li&gt;limited theme (no dark mode)&lt;/li&gt;&#xA;&lt;li&gt;folder is a mess&lt;/li&gt;&#xA;&lt;li&gt;but it&amp;rsquo;s simple to host&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;mkdoc-material &lt;a href=&#34;https://github.com/squidfunk/mkdocs-material&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;https://github.com/squidfunk/mkdocs-material&lt;/a&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;uses python, so build time will be long.&lt;/li&gt;&#xA;&lt;li&gt;config looks complicated.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;</description>
    </item>
  </channel>
</rss>
