92df3b2262
This reverts commit d8e4536bab
.
40 lines
1.4 KiB
HTML
Executable File
40 lines
1.4 KiB
HTML
Executable File
{{ define "main" }}
|
|
{{ partial "page-header" . }}
|
|
<section class="section">
|
|
<div class="container text-center">
|
|
<ul>
|
|
{{/* categories */}}
|
|
{{ if eq .Permalink (`categories/` | absLangURL) }}
|
|
{{ range site.Taxonomies.categories.ByCount }}
|
|
<li class="m-3 inline-block">
|
|
<a
|
|
href="{{ .Page.Permalink }}"
|
|
class="bg-theme-light text-dark dark:bg-darkmode-theme-light dark:text-darkmode-dark block rounded px-4 py-2 text-xl">
|
|
{{ .Page.Title }}
|
|
<span class="bg-body dark:bg-darkmode-body ml-2 rounded px-2">
|
|
{{ .Count }}
|
|
</span>
|
|
</a>
|
|
</li>
|
|
{{ end }}
|
|
{{ end }}
|
|
{{/* tags */}}
|
|
{{ if eq .Permalink (`tags/` | absLangURL) }}
|
|
{{ range site.Taxonomies.tags.ByCount }}
|
|
<li class="m-3 inline-block">
|
|
<a
|
|
href="{{ .Page.Permalink }}"
|
|
class="bg-theme-light text-dark dark:bg-darkmode-theme-light dark:text-darkmode-dark block rounded px-4 py-2 text-xl">
|
|
{{ .Page.Title }}
|
|
<span class="bg-body dark:bg-darkmode-body ml-2 rounded px-2">
|
|
{{ .Count }}
|
|
</span>
|
|
</a>
|
|
</li>
|
|
{{ end }}
|
|
{{ end }}
|
|
</ul>
|
|
</div>
|
|
</section>
|
|
{{ end }}
|