🚚 Make taxonomy indexes generic

This commit is contained in:
James Panther
2021-08-11 17:21:24 +10:00
parent a6a3ee761e
commit f97add5d5f
3 changed files with 4 additions and 2532 deletions
+18
View File
@@ -0,0 +1,18 @@
{{ define "main" }}
{{ partial "section-heading.html" . }}
<section class="flex flex-wrap -mx-2 overflow-hidden">
{{ range .Data.Terms }}
<article class="w-full px-2 my-3 overflow-hidden sm:w-1/2 md:w-1/3 lg:w-1/4 xl:w-1/5">
<h2>
<a class="text-xl font-medium hover:underline" href="{{ .Page.Permalink }}"
>{{ .Page.Title }}</a
>
<span class="text-base text-gray-400">
<span class="px-1">&middot;</span>
{{ .Count }}
</span>
</h2>
</article>
{{ end }}
</section>
{{ end }}
+13
View File
@@ -0,0 +1,13 @@
{{ define "main" }}
{{ partial "section-heading.html" . }}
<section>
{{ range (.Paginate (.Pages.GroupByDate "2006")).PageGroups }}
<h2 class="mt-12 text-2xl font-bold first:mt-8">{{ .Key }}</h2>
<hr class="border-gray-400 border-dotted w-36" />
{{ range .Pages }}
{{ partial "article-link.html" . }}
{{ end }}
{{ end }}
</section>
{{ partial "pagination.html" . }}
{{ end }}