diff options
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | README_CN.md | 2 | ||||
-rw-r--r-- | exampleSite/config.toml | 1 | ||||
-rw-r--r-- | layouts/partials/post-meta.html | 2 |
4 files changed, 4 insertions, 3 deletions
@@ -3,7 +3,7 @@ Fuji is a minimal Hugo theme with full dark mode support and GitHub Primer markdown style.  - +  [English](https://github.com/dsrkafuu/hugo-theme-fuji#readme) | [简体中文](https://github.com/dsrkafuu/hugo-theme-fuji/blob/master/README_CN.md) diff --git a/README_CN.md b/README_CN.md index 786b401..1258f0d 100644 --- a/README_CN.md +++ b/README_CN.md @@ -3,7 +3,7 @@ 简单的 Hugo 主题,支持夜间模式,Markdown 样式来自 GitHub Primer。  - +  [English](https://github.com/dsrkafuu/hugo-theme-fuji#readme) | [简体中文](https://github.com/dsrkafuu/hugo-theme-fuji/blob/master/README_CN.md) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index f6ebc75..70b0999 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -51,6 +51,7 @@ sourceURL = "https://github.com/dsrkafuu/hugo-theme-fuji" # Word counter and read time indicator in post metadata showWordCounter = true showReadTime = false +hideNoTagList = false # License in the footer showLicenseInFooter = false diff --git a/layouts/partials/post-meta.html b/layouts/partials/post-meta.html index e025dd6..061e6cf 100644 --- a/layouts/partials/post-meta.html +++ b/layouts/partials/post-meta.html @@ -2,4 +2,4 @@ {{ if ne .Date.YearDay .Lastmod.YearDay }}<span><i class="iconfont icon-sync-circle-sharp"></i> {{ dateFormat ( or $.Site.Params.dateFormat "2006-01-02" ) $.Page.Params.LastMod }}</span>{{ end }} {{ if .Site.Params.showWordCounter }}<span><i class="iconfont icon-file-tray-sharp"></i> {{ i18n "postMetaWordCount" .WordCount}}</span>{{ end }} {{ if .Site.Params.showReadTime }}<span><i class="iconfont icon-time-sharp"></i> {{ i18n "postMetaReadingTime" .ReadingTime }}</span>{{ end }} -<span><i class="iconfont icon-pricetags-sharp"></i> {{ if .Params.tags }}{{ range .Params.tags }}<a href="{{ "tags/" | relURL }}{{ . | urlize}}">{{ . }}</a> {{ end }}{{ else }}{{ i18n "postMetaNoTag" }}{{ end }}</span> +{{ if and (not .Params.tags) .Site.Params.hideNoTagList }}{{ else }}<span><i class="iconfont icon-pricetags-sharp"></i> {{ if .Params.tags }}{{ range .Params.tags }}<a href="{{ "tags/" | relURL }}{{ . | urlize }}">{{ . }}</a> {{ end }}{{ else }}{{ i18n "postMetaNoTag" }}{{ end }}</span>{{ end }} |