diff --git a/layouts/partials/article/components/details.html b/layouts/partials/article/components/details.html index 97d7597..e9b765a 100644 --- a/layouts/partials/article/components/details.html +++ b/layouts/partials/article/components/details.html @@ -1,4 +1,80 @@ +{{- $IsList := .IsList -}} +{{- $Page := .Page -}}
+ {{ if $Page.Params.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 }} + + {{ .LinkTitle }} + + {{ end }} +
+ {{ end }} + +
+

+ + {{- $Page.Title -}} + +

+ + {{ with $Page.Params.description }} +

+ {{ . }} +

+ {{ end }} +
+ + {{ $showReadingTime := $Page.Params.readingTime | default ($Page.Site.Params.article.readingTime) }} + {{ $showDate := not $Page.Date.IsZero }} + {{ $showTime := or $showDate $showReadingTime }} + {{ $showTranslations := $Page.IsTranslated }} + {{ $showTags := and $Page.Site.Params.Article.List.ShowTags ($Page.GetTerms "tags") $IsList }} + + {{ if or $showTime $showTranslations $showTags }} + + {{ end }} +
+