diff --git a/assets/css/099_taxonomy_list.css b/assets/css/099_taxonomy_list.css new file mode 100644 index 0000000..a3e6017 --- /dev/null +++ b/assets/css/099_taxonomy_list.css @@ -0,0 +1,35 @@ +{{/* + 099_taxonomy_list.css + Eryn Wells +*/}} + + + + + +/*************************** + * COMPONENT: TAXONOMY LIST + ***************************/ + +.taxonomy-list { + --spacing: 1ch; + + display: flex; + font-family: var(--font-family-monospace); + gap: var(--spacing); + list-style-type: none; + margin-block: 0; + padding-inline-start: 0; + + &::before { + color: var(--text-color-secondary); + content: attr(data-term) " ="; + text-transform: uppercase; + } + + li:not(:last-child)::after { + color: var(--text-color-secondary); + content: ":"; + margin-inline-start: var(--spacing); + } +} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index ecdb751..abda2be 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,4 +1,7 @@ {{ define "main" }}
+
+ {{ partial "page/footer.html" . }} +
{{ end }} diff --git a/layouts/partials/page/footer.html b/layouts/partials/page/footer.html new file mode 100644 index 0000000..113299b --- /dev/null +++ b/layouts/partials/page/footer.html @@ -0,0 +1,2 @@ +{{ partial "page/taxonomy_list.html" (dict "page" . "term" "categories") }} +{{ partial "page/taxonomy_list.html" (dict "page" . "term" "tags") }} diff --git a/layouts/partials/page/taxonomy_list.html b/layouts/partials/page/taxonomy_list.html new file mode 100644 index 0000000..7661c38 --- /dev/null +++ b/layouts/partials/page/taxonomy_list.html @@ -0,0 +1,8 @@ +{{- $terms := .page.GetTerms .term -}} +{{ with $terms }} + +{{ end }}