diff options
author | Shaform <shaform@gmail.com> | 2018-07-24 07:54:44 +0300 |
---|---|---|
committer | Shaform <shaform@gmail.com> | 2018-07-24 07:54:44 +0300 |
commit | 61111d032ea742708cef3706bf910184eb05d71a (patch) | |
tree | 0d48c0306f0ff57915e7bfa6a24695ec9ae9bf3e /layouts | |
parent | d4f43e51c6670a5c924aa6115d9196c8097290ed (diff) |
use even newer API
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/terms.html | 4 | ||||
-rw-r--r-- | layouts/posts/single.html | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html index e800cb7..7fbf926 100644 --- a/layouts/_default/terms.html +++ b/layouts/_default/terms.html @@ -27,7 +27,7 @@ {{ range .Data.Terms.ByCount }} {{ $name := .Name }} {{ $pages := .Pages }} - {{ with $.Site.GetPage "taxonomy" (printf "%s/%s" $type .Term) }} + {{ with $.Site.GetPage (printf "/%s/%s" $type .Term) }} <h2><a href="{{ .Permalink }}">{{ $name }}</a></h2> <dl class="row"> {{ range first ($.Site.Params.numListPosts | default 10) $pages }} @@ -48,7 +48,7 @@ {{ range .Data.Terms.Alphabetical }} {{ $name := .Name }} {{ $count := len .Pages }} - {{ with $.Site.GetPage "taxonomy" (printf "%s/%s" $type .Term) }} + {{ with $.Site.GetPage (printf "/%s/%s" $type .Term) }} <dt class="col-md-3"><span class="badge badge-secondary">{{ $count }}</span> {{ if gt $count 1 }}{{ i18n "articles_tagged" }}{{ else }}{{ i18n "article_tagged" }}{{ end }}</dt> <dd class="col-md-9"><a href="{{ .Permalink }}">{{ $name }}</a></dd> {{ end }} diff --git a/layouts/posts/single.html b/layouts/posts/single.html index f30c3b2..b986299 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -18,7 +18,7 @@ / {{ i18n "in_category" }} {{ range . -}} {{- $name := . -}} - {{- with $.Site.GetPage "taxonomy" (printf "categories/%s" $name) | default ($.Site.GetPage "taxonomy" (printf "categories/%s" ($name | urlize))) -}} + {{- with $.Site.GetPage (printf "/categories/%s" $name) | default ($.Site.GetPage (printf "/categories/%s" ($name | urlize))) -}} {{- if not ($.Scratch.Get "firstcategory") -}} , {{ else -}} @@ -37,7 +37,7 @@ <i class="fas fa-tags" aria-hidden="true"></i> {{ range (. | sort) -}} {{- $name := . -}} - {{- with $.Site.GetPage "taxonomy" (printf "tags/%s" $name) | default ($.Site.GetPage "taxonomy" (printf "tags/%s" ($name | urlize))) -}} + {{- with $.Site.GetPage (printf "/tags/%s" $name) | default ($.Site.GetPage (printf "/tags/%s" ($name | urlize))) -}} {{- if not ($.Scratch.Get "firsttag") -}} , {{ else -}} |