From 9a80f43c0af851c6a1b651a4b2ccf209feae3801 Mon Sep 17 00:00:00 2001 From: nodejh Date: Sun, 9 Apr 2017 00:51:26 +0800 Subject: [PATCH] fix tags and about pages --- exampleSite/config.toml | 1 + exampleSite/content/about/{index.md => _index.md} | 0 exampleSite/content/tags/{index.md => _index.md} | 0 layouts/partials/footer.html | 2 +- layouts/taxonomy/tag.terms.html | 2 +- 5 files changed, 3 insertions(+), 2 deletions(-) rename exampleSite/content/about/{index.md => _index.md} (100%) rename exampleSite/content/tags/{index.md => _index.md} (100%) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 65e85ef..1b04af7 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -6,6 +6,7 @@ title = "Blog Title" theme = "hugo-theme-cactus-plus" # Enter your tracking code to enable Google Analytics googleAnalytics = "your_google_analytics_code" +hasCJKLanguage = true [params] name = "Hugo" diff --git a/exampleSite/content/about/index.md b/exampleSite/content/about/_index.md similarity index 100% rename from exampleSite/content/about/index.md rename to exampleSite/content/about/_index.md diff --git a/exampleSite/content/tags/index.md b/exampleSite/content/tags/_index.md similarity index 100% rename from exampleSite/content/tags/index.md rename to exampleSite/content/tags/_index.md diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 0d06ef5..c6826f0 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -6,7 +6,7 @@ {{ with .Site.Params.copyright }} {{ . | markdownify }} {{ else }} - © Copyright {{ now.Format "2006"}} {{ .Site.Params.name }} + © Copyright {{ now.Format "2006"}} {{ .Site.Params.name }} {{ end }}

diff --git a/layouts/taxonomy/tag.terms.html b/layouts/taxonomy/tag.terms.html index 157074d..8c04b53 100644 --- a/layouts/taxonomy/tag.terms.html +++ b/layouts/taxonomy/tag.terms.html @@ -3,6 +3,7 @@ {{ partial "nav.html" . }} {{ partial "profile.html" . }} +

{{ range $name, $taxonomy := .Site.Taxonomies.tags }} @@ -11,7 +12,6 @@ {{ end }}
- {{ partial "footer.html" . }}