adds narrator and facilitator taxonomy page
This commit is contained in:
parent
29bcf223a3
commit
a7654842d9
@ -5,6 +5,8 @@ theme = "hugo-starter-tailwind-basic"
|
|||||||
|
|
||||||
[taxonomies]
|
[taxonomies]
|
||||||
tag = "tags"
|
tag = "tags"
|
||||||
|
narrator = "narrator"
|
||||||
|
facilitator = "facilitator"
|
||||||
|
|
||||||
[minify]
|
[minify]
|
||||||
minifyOutput = true
|
minifyOutput = true
|
28
layouts/facilitator/term.html
Normal file
28
layouts/facilitator/term.html
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
{{ define "main" }}
|
||||||
|
<header class="my-8">
|
||||||
|
<p class="text-center font-iosevka">Facilitator</p>
|
||||||
|
<h1 class="text-4xl font-bold text-center capitalize">{{ .Title }}</h1>
|
||||||
|
</header>
|
||||||
|
<main class="container mx-auto">
|
||||||
|
<ul class="mt-4 space-y-4">
|
||||||
|
{{ $pages := .Pages }}
|
||||||
|
{{ partial "article-list.html" (dict "Pages" $pages) }}
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
{{ if gt .Site.Taxonomies.facilitator 1 }}
|
||||||
|
<section>
|
||||||
|
<h2 class="text-4xl my-8 font-iosevka text-center">Other Facilitators</h2>
|
||||||
|
<div class="tag-cloud font-iosevka text-gray-600">
|
||||||
|
{{ range $facilitator, $pages := .Site.Taxonomies.facilitator }}
|
||||||
|
{{ if ne $facilitator $.Title }}
|
||||||
|
<a href="{{ "/facilitator/" | relLangURL }}{{ $facilitator | urlize }}"
|
||||||
|
class="tag text-sm inline-block p-2 my-1 border border-gray-100 rounded-lg hover:bg-yellow-100 whitespace-nowrap">
|
||||||
|
{{ $facilitator }}
|
||||||
|
</a>
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
{{ end }}
|
||||||
|
</main>
|
||||||
|
{{ end }}
|
@ -22,7 +22,7 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
{{ $narrators = $narrators | uniq | sort }}
|
{{ $narrators = $narrators | uniq | sort }}
|
||||||
{{ range $narrator := $narrators }}
|
{{ range $narrator := $narrators }}
|
||||||
<a href="{{ "/narrators/" | relLangURL }}{{ $narrator | urlize }}"
|
<a href="{{ "/narrator/" | relLangURL }}{{ $narrator | urlize }}"
|
||||||
class="tag inline-block p-2 my-1 border border-gray-100 rounded-lg hover:bg-yellow-100 whitespace-nowrap"
|
class="tag inline-block p-2 my-1 border border-gray-100 rounded-lg hover:bg-yellow-100 whitespace-nowrap"
|
||||||
style="font-size: 1rem;">
|
style="font-size: 1rem;">
|
||||||
{{ $narrator }}
|
{{ $narrator }}
|
||||||
|
25
layouts/narrator/term.html
Normal file
25
layouts/narrator/term.html
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
{{ define "main" }}
|
||||||
|
<header class="my-8">
|
||||||
|
<p class="text-center font-iosevka">Narrator</p>
|
||||||
|
<h1 class="text-4xl font-bold text-center capitalize">{{ .Title }}</h1>
|
||||||
|
</header>
|
||||||
|
<main class="container mx-auto">
|
||||||
|
<ul class="mt-4 space-y-4">
|
||||||
|
{{ $pages := .Pages }}
|
||||||
|
{{ partial "article-list.html" (dict "Pages" $pages) }}
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<h2 class="text-4xl my-8 font-iosevka text-center">Other Narrators</h2>
|
||||||
|
<div class="tag-cloud font-iosevka text-gray-600 text-center">
|
||||||
|
{{ $narrators := .Site.Taxonomies.narrator }}
|
||||||
|
{{ range $narrator, $pages := $narrators }}
|
||||||
|
<a href="{{ "/narrator/" | relLangURL }}{{ $narrator | urlize }}"
|
||||||
|
class="tag inline-block p-2 my-1 border border-gray-100 rounded-lg hover:bg-yellow-100 whitespace-nowrap">
|
||||||
|
{{ $narrator| humanize }}
|
||||||
|
</a>
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</main>
|
||||||
|
{{ end }}
|
@ -9,7 +9,7 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
{{ $facilitators = $facilitators | uniq | sort }}
|
{{ $facilitators = $facilitators | uniq | sort }}
|
||||||
{{ range $facilitator := $facilitators }}
|
{{ range $facilitator := $facilitators }}
|
||||||
<a href="{{ " facilitators/" | relLangURL }}{{ $facilitator | urlize }}"
|
<a href="{{ "/facilitator/" | relLangURL }}{{ $facilitator | urlize }}"
|
||||||
class="tag inline-block p-2 my-1 border border-gray-100 rounded-lg hover:bg-yellow-100 whitespace-nowrap"
|
class="tag inline-block p-2 my-1 border border-gray-100 rounded-lg hover:bg-yellow-100 whitespace-nowrap"
|
||||||
style="font-size: 1rem;">
|
style="font-size: 1rem;">
|
||||||
{{ $facilitator }}
|
{{ $facilitator }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user