Colored category badges, images with categories, redo categories & tags for posts, tags in archive view, redid icons on menu

This commit is contained in:
2023-11-26 15:40:29 -05:00
Unverified
parent daad69ea45
commit d55cdea917
29 changed files with 130 additions and 69 deletions

View File

@@ -15,6 +15,21 @@
{{ end }}
</header>
<header>
{{- $taxonomy := $.Site.GetPage "taxonomyTerm" "tags" -}}
{{- $terms := $taxonomy.Pages -}}
{{ if $terms }}
<h2 class="section-title">{{ $taxonomy.Title }}</h2>
<div class="subsection-list-tags">
<div class="article-list--tile">
{{ range $terms }}
{{ partial "article-list/tile" (dict "context" . "size" "250x75" "Type" "taxonomy") }}
{{ end }}
</div>
</div>
{{ end }}
</header>
{{ $pages := where .Site.RegularPages "Type" "in" .Site.Params.mainSections }}
{{ $notHidden := where .Site.RegularPages "Params.hidden" "!=" true }}
{{ $filtered := ($pages | intersect $notHidden) }}

View File

@@ -15,6 +15,7 @@
{{ with .Params.description }}
<h2 class="section-description">{{ . }}</h2>
{{ end }}
<section class="section-description">{{ .Content }}</section>
</div>
{{- $image := partialCached "helper/image" (dict "Context" . "Type" "section") .RelPermalink "section" -}}