From bfae07ce6d74fba835289d392ee3532dbb089f80 Mon Sep 17 00:00:00 2001 From: MunifTanjim Date: Sun, 5 Aug 2018 12:27:09 +0600 Subject: [PATCH] fix [templates]: resolves #160 --- layouts/partials/entry/taxonomy-list.html | 12 +++++------- layouts/partials/extras/taxonomy_cloud.html | 17 ++++++++--------- 2 files changed, 13 insertions(+), 16 deletions(-) diff --git a/layouts/partials/entry/taxonomy-list.html b/layouts/partials/entry/taxonomy-list.html index 0f17f820..3503d3f0 100644 --- a/layouts/partials/entry/taxonomy-list.html +++ b/layouts/partials/entry/taxonomy-list.html @@ -7,13 +7,11 @@ {{ ( ( i18n $tx 2 ) | default $txs ) | title }}: {{- range $i, $term := ( index $.Params $txs ) -}} - {{- if gt $i 0 }}, {{ end -}} - - {{- with $.Site.GetPage ( print "/" $txs "/" ( $term | urlize ) ) -}} - {{- .Title -}} - {{- else -}} - {{- $term -}} + {{- with $.Site.GetPage ( print "/" $txs "/" $term ) -}} + {{- if gt $i 0 }}, {{ end -}} + + {{- .Title -}} + {{- end -}} - {{- end -}} diff --git a/layouts/partials/extras/taxonomy_cloud.html b/layouts/partials/extras/taxonomy_cloud.html index 9c603cab..338cc50a 100644 --- a/layouts/partials/extras/taxonomy_cloud.html +++ b/layouts/partials/extras/taxonomy_cloud.html @@ -2,11 +2,11 @@ {{- $Site := $Scope.Site -}} {{- $Scratch := $Scope.Scratch -}} {{- $Shuffle := ( .Shuffle | default true ) -}} -{{- $Taxonomy := .Taxonomy -}} -{{- $Data := ( $Site.GetPage $Taxonomy ).Data -}} +{{- $TaxonomyPage := ( $Site.GetPage ( print "/" .Taxonomy ) ) -}} +{{- $Data := $TaxonomyPage.Data -}}
-