- {{ if .Params.categories }}
+ {{ if $Page.Params.categories }}
- {{ range (.GetTerms "categories") }}
+ {{ range ($Page.GetTerms "categories") }}
{{ $color := partial "helper/color-from-str" .LinkTitle }}
{{ $BackgroundColor := default $color.BackgroundColor .Params.style.background }}
{{ $TextColor := default $color.TextColor .Params.style.color }}
@@ -14,28 +16,28 @@
- {{ with .Params.description }}
+ {{ with $Page.Params.description }}
{{ . }}
{{ end }}
- {{ $showReadingTime := .Params.readingTime | default (.Site.Params.article.readingTime) }}
- {{ $showDate := not .Date.IsZero }}
+ {{ $showReadingTime := $Page.Params.readingTime | default (.Site.Params.article.readingTime) }}
+ {{ $showDate := not $Page.Date.IsZero }}
{{ $showFooter := or $showDate $showReadingTime }}
{{ if $showFooter }}
{{ end }}
- {{ if .IsTranslated }}
+ {{ if $Page.IsTranslated }}
{{ end }}
+
+ {{ if and $Page.Site.Params.Article.List.ShowTags ($Page.GetTerms "tags") $IsList }}
+
+ {{ end }}
diff --git a/layouts/_partials/article/components/header.html b/layouts/_partials/article/components/header.html
index a6e8225..301aa37 100644
--- a/layouts/_partials/article/components/header.html
+++ b/layouts/_partials/article/components/header.html
@@ -1,13 +1,15 @@
+{{- $IsList := .IsList -}}
+{{- $Page := .Page -}}