diff --git a/layouts/partials/article/components/details.html b/layouts/partials/article/components/details.html index e9b765a..a4b7f05 100644 --- a/layouts/partials/article/components/details.html +++ b/layouts/partials/article/components/details.html @@ -3,11 +3,8 @@
{{ 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 }} - + {{ range (.GetTerms "tags") }} + {{ .LinkTitle }} {{ end }} @@ -16,7 +13,7 @@

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

@@ -30,97 +27,26 @@ {{ $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 }} -
- {{ if $showTime }} -
- {{ if $showDate }} - {{ partial "helper/icon" "date" }} - - {{ end }} - - {{ if $showReadingTime }} - {{ partial "helper/icon" "clock" }} - - {{ end }} -
- {{ end }} - - {{ if $showTranslations }} -
- {{ partial "helper/icon" "language" }} - {{ range $Page.Translations }} - {{ .Language.LanguageName }} - {{ end }} -
- {{ end }} - - {{ if $showTags }} - - {{ end }} -
- {{ end }} -
- +