diff options
| author | 2024-08-02 13:23:35 +0800 | |
|---|---|---|
| committer | 2024-08-02 13:23:35 +0800 | |
| commit | e03422873a1788137f120d9c8f34b2be079f0aee (patch) | |
| tree | f52775951aed0c594a6b1ca4c9432f3bba74ecac /themes/hugo-xmag/layouts/_default/terms.html | |
| parent | 2b8db24f956ad99305860c2f8f4cd3a331a76dc6 (diff) | |
| download | journal-e03422873a1788137f120d9c8f34b2be079f0aee.tar.gz journal-e03422873a1788137f120d9c8f34b2be079f0aee.zip | |
docs: build with hugo
Diffstat (limited to 'themes/hugo-xmag/layouts/_default/terms.html')
| -rw-r--r-- | themes/hugo-xmag/layouts/_default/terms.html | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/themes/hugo-xmag/layouts/_default/terms.html b/themes/hugo-xmag/layouts/_default/terms.html new file mode 100644 index 0000000..2f432ed --- /dev/null +++ b/themes/hugo-xmag/layouts/_default/terms.html @@ -0,0 +1,22 @@ +{{ partial "header.html" . }} + +<div class="container"> +<article> +<main> +<h1>{{ $.Scratch.Get "Title" }}</h1> + +<ul class="terms"> + {{ range $key, $value := .Data.Terms }} + <li> + <a href="{{ (print "/" $.Data.Plural "/" $key) | relURL }}"> + {{ $key }} + </a> + ({{ len $value }}) + </li> + {{ end }} +</ul> +</main> +</article> +</div> + +{{ partial "footer.html" . }} |
