Added some support for tags and categories
This commit is contained in:
19
layouts/_default/terms.html
Normal file
19
layouts/_default/terms.html
Normal file
@@ -0,0 +1,19 @@
|
||||
{{ define "main" }}
|
||||
<section class="layout-page">
|
||||
<div class="page-int section-stack">
|
||||
<header class="space-y-2">
|
||||
<h1 class="heading-page text-2xl sm:text-3xl">{{ .Title }}</h1>
|
||||
</header>
|
||||
|
||||
<div class="flex flex-wrap gap-2">
|
||||
{{ range .Data.Terms }}
|
||||
<a href="{{ .Page.Permalink }}" class="flex items-baseline gap-1.5 px-3 py-1 bg-white/5 border border-white/10 rounded-full hover:bg-white/10 hover:border-white/20 transition-all text-sm">
|
||||
{{/* Název tagu */}}
|
||||
<span class="font-medium text-white/90">{{ .Page.Title }}</span>
|
||||
<span class="text-xs text-muted">({{ .Count }})</span>
|
||||
</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user