From 29f5dc9458f3d900f5cfd96edfe2e83c090e936f Mon Sep 17 00:00:00 2001 From: nodejh Date: Sat, 8 Apr 2017 19:40:26 +0800 Subject: [PATCH] fix bug:Tags and About page broken with Hugo v0.18+ --- README.md | 2 +- README_zh-cn.md | 4 ++-- layouts/{about/single.html => section/about.html} | 1 - layouts/{tags/single.html => taxonomy/tag.terms.html} | 0 4 files changed, 3 insertions(+), 4 deletions(-) rename layouts/{about/single.html => section/about.html} (98%) rename layouts/{tags/single.html => taxonomy/tag.terms.html} (100%) diff --git a/README.md b/README.md index 3a82059..2bd5d8d 100644 --- a/README.md +++ b/README.md @@ -78,7 +78,7 @@ Use the about page to introduce yourself to your visitors. You can customize the ## Tags page -Use the tags page to show all post's tags. You can create the file `/content/tags/index.md` and set `hidden = true` so that the page does not show on your home page or other lists of pages. +Use the tags page to show all post's tags. You can create the file `/content/tags/_index.md` and set `hidden = true` so that the page does not show on your home page or other lists of pages. For example: diff --git a/README_zh-cn.md b/README_zh-cn.md index aaf5b34..ef24f0d 100644 --- a/README_zh-cn.md +++ b/README_zh-cn.md @@ -77,7 +77,7 @@ $ git clone https://github.com/nodejh/hugo-theme-cactus-plus.git ## 关于页面 -使用关于页面首先要在你的站点目录的 `content` 目录下创建一个 `about` 目录,然后再创建一个 `index.md` 文件,编写该文件即可。 +使用关于页面首先要在你的站点目录的 `content` 目录下创建一个 `about` 目录,然后再创建一个 `_index.md` 文件,编写该文件即可。 你也可以参考本主题示例站点中的关于页:[`exampleSite/content/about/index.md`](https://github.com/nodejh/hugo-theme-cactus-plus/blob/master/exampleSite/content/about/index.md)。 @@ -85,7 +85,7 @@ $ git clone https://github.com/nodejh/hugo-theme-cactus-plus.git 本主题也提供了 `标签页` 功能。 -在 `content` 目录下新建一个名为 `tags` 的目录,然后在次目录创建一个名为 `index.md` 的文件,写入下面的内容,注意设置 `hidden = true` 即可: +在 `content` 目录下新建一个名为 `tags` 的目录,然后在次目录创建一个名为 `_index.md` 的文件,写入下面的内容,注意设置 `hidden = true` 即可: ```markdown +++ diff --git a/layouts/about/single.html b/layouts/section/about.html similarity index 98% rename from layouts/about/single.html rename to layouts/section/about.html index 4933005..7e99c5f 100644 --- a/layouts/about/single.html +++ b/layouts/section/about.html @@ -19,4 +19,3 @@ {{ partial "js.html" . }} - diff --git a/layouts/tags/single.html b/layouts/taxonomy/tag.terms.html similarity index 100% rename from layouts/tags/single.html rename to layouts/taxonomy/tag.terms.html