diff options
author | Shaform <shaform@gmail.com> | 2018-07-18 10:09:30 +0300 |
---|---|---|
committer | Shaform <shaform@gmail.com> | 2018-07-18 10:09:30 +0300 |
commit | 9f89349669069f655a75380a5ca5fb306eea6cb2 (patch) | |
tree | a20f9c90778ad2a705dbf31e92d89f2448fcc30a | |
parent | ad45a6295fada2443f8de7fc534a3ba5be22595d (diff) |
try urlized page as well
-rw-r--r-- | layouts/post/single.html | 4 | ||||
-rw-r--r-- | layouts/post/summary.html | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/layouts/post/single.html b/layouts/post/single.html index 60286e2..ae7d01b 100644 --- a/layouts/post/single.html +++ b/layouts/post/single.html @@ -11,7 +11,7 @@ <div class="post-category"> {{ range . }} {{- $name := . -}} - {{- with $.Site.GetPage "taxonomy" "categories" $name -}} + {{- with $.Site.GetPage "taxonomy" "categories" $name | default ($.Site.GetPage "taxonomy" "categories" ($name | urlize)) -}} <a href="{{ .Permalink }}"> {{ $name }} </a> {{ end -}} {{ end }} @@ -43,7 +43,7 @@ <div class="post-tags"> {{ range . }} {{- $name := . -}} - {{- with $.Site.GetPage "taxonomy" "tags" $name -}} + {{- with $.Site.GetPage "taxonomy" "tags" $name | default ($.Site.GetPage "taxonomy" "tags" ($name | urlize)) -}} <a href="{{ .Permalink }}">{{ $name }}</a> {{ end -}} {{ end }} diff --git a/layouts/post/summary.html b/layouts/post/summary.html index fd5b6c0..6876a48 100644 --- a/layouts/post/summary.html +++ b/layouts/post/summary.html @@ -8,7 +8,7 @@ <div class="post-category"> {{ range . }} {{- $name := . -}} - {{- with $.Site.GetPage "taxonomy" "categories" $name -}} + {{- with $.Site.GetPage "taxonomy" "categories" $name | default ($.Site.GetPage "taxonomy" "categories" ($name | urlize)) -}} <a href="{{ .Permalink }}"> {{ $name }} </a> {{ end -}} {{ end }} |