gcg-website/layouts/_default/terms.html
Denys Konovalov d2ab31fa7a
All checks were successful
website-main / prod-build (push) Successful in 14s
website-main / test-build (push) Successful in 9s
minor changes
2024-03-24 16:23:54 +01:00

18 lines
660 B
HTML

{{ define "main" }}
<section class="section" data-pagefind-body>
<div class="container">
<div class="tag-list">
{{ $transliterations := site.Data.transliterations.transliterations }}
{{ range $name, $items := .Data.Terms }}
{{ if eq $.Data.Plural "tags" }}
<a href="{{ `tags/` | relURL }}{{ $name | urlize | lower }}">{{ $name }}</a>
{{ else if eq $.Data.Plural "categories" }}
<a href="{{ `categories/` | relURL }}{{ $name | urlize | lower }}">{{ with (index $transliterations $name) }}{{ . }}{{ else }}{{ $name | title }}{{end}}</a>
{{ end }}
{{ end }}
</div>
</div>
</section>
{{ end }}