howto

Add word count and readingtime in Hugo | 给Hugo增加字数统计和阅读时间

To add word count and reading time in your hugo page, use the code below. <span class="post-word-count">{{ .WordCount }} words</span> <span class="more-meta"> {{ .ReadingTime }} </span> To add support for CJK Characters, change the settings below in the config file. hasCJKLanguage = true

Using Org Mode in Hugo | 在Hugo里使用Org-mode

Hugo可以直接使用org-mode,front matter直接用org-mode的模式既可。 #+title: Using Org Mode in Hugo #+date: 2021-08-18 #+tags[]: org-mode hugo 嵌入html时使用以下的