diff options
author | Joway.CI <joway.w@gmail.com> | 2019-12-15 18:52:06 +0300 |
---|---|---|
committer | Joway.CI <joway.w@gmail.com> | 2019-12-15 18:52:06 +0300 |
commit | 0dc939a17ed25cc1646d78916e72040accf8e568 (patch) | |
tree | ff0e77d1affe7d80ab6e19275df8810701c0ce56 | |
parent | ca0be59be62a35502447b720668d7b5e9171daaf (diff) |
fix single page categories link
-rw-r--r-- | exampleSite/content/cn/posts/cn.md | 1 | ||||
-rw-r--r-- | exampleSite/content/en/posts/goisforlovers.md | 3 | ||||
-rw-r--r-- | exampleSite/content/en/posts/hugoisforlovers.md | 3 | ||||
-rw-r--r-- | exampleSite/content/en/posts/migrate-from-jekyll.md | 3 | ||||
-rw-r--r-- | layouts/_default/single.html | 2 |
5 files changed, 7 insertions, 5 deletions
diff --git a/exampleSite/content/cn/posts/cn.md b/exampleSite/content/cn/posts/cn.md index 10e8339..1d99dfc 100644 --- a/exampleSite/content/cn/posts/cn.md +++ b/exampleSite/content/cn/posts/cn.md @@ -1,6 +1,7 @@ --- title: 中文题目 date: 2018-03-04 +categories: ['随笔'] draft: false --- diff --git a/exampleSite/content/en/posts/goisforlovers.md b/exampleSite/content/en/posts/goisforlovers.md index df125d8..5171f65 100644 --- a/exampleSite/content/en/posts/goisforlovers.md +++ b/exampleSite/content/en/posts/goisforlovers.md @@ -10,8 +10,7 @@ tags = [ ] date = "2014-04-02" categories = [ - "Development", - "golang", + "Develop", ] menu = "main" +++ diff --git a/exampleSite/content/en/posts/hugoisforlovers.md b/exampleSite/content/en/posts/hugoisforlovers.md index 02bb509..1a09a76 100644 --- a/exampleSite/content/en/posts/hugoisforlovers.md +++ b/exampleSite/content/en/posts/hugoisforlovers.md @@ -9,8 +9,7 @@ tags = [ ] date = "2014-04-02" categories = [ - "Development", - "golang", + "Golang", ] menu = "main" +++ diff --git a/exampleSite/content/en/posts/migrate-from-jekyll.md b/exampleSite/content/en/posts/migrate-from-jekyll.md index 75f9558..43e8344 100644 --- a/exampleSite/content/en/posts/migrate-from-jekyll.md +++ b/exampleSite/content/en/posts/migrate-from-jekyll.md @@ -6,6 +6,9 @@ menu: parent: tutorials prev: /tutorials/mathjax title: Migrate to Hugo from Jekyll +categories: [ + "Docs", +] weight: 10 --- diff --git a/layouts/_default/single.html b/layouts/_default/single.html index db32e7c..80bd854 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -39,7 +39,7 @@ <div class="col-xs-12"> {{ range .Params.categories }} <div class="post-category"> - <a href="/{{ . }}/"> + <a href="/categories/{{ lower . }}/"> {{ . }} </a> </div> |