diff --git a/layouts/page/archive.html b/layouts/page/archive.html index 7c47fbc..8281ec3 100644 --- a/layouts/page/archive.html +++ b/layouts/page/archive.html @@ -5,16 +5,19 @@ {{ partial "sidebar/left.html" . }}
+ {{ $categories := ($.Site.GetPage "taxonomyTerm" "categories").Pages }} + {{ if $categories }}

Categories

- {{ range ($.Site.GetPage "taxonomyTerm" "categories").Pages }} + {{ range $categories }} {{ partial "article-list/tile" (dict "context" . "size" "250x150") }} {{ end }}
+ {{ end }} {{ $pages := where .Site.RegularPages "Type" "in" .Site.Params.mainSections }} {{ $notHidden := where .Site.RegularPages "Params.hidden" "!=" true }}