Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zwbetz-gh/papercss-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/terms.html')
-rw-r--r--layouts/_default/terms.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html
new file mode 100644
index 0000000..4cb91b0
--- /dev/null
+++ b/layouts/_default/terms.html
@@ -0,0 +1,17 @@
+{{ define "main" }}
+
+<h1>{{ .Title }}</h1>
+{{ $type := .Type }}
+{{ range $key, $value := .Data.Terms.ByCount }}
+ {{ $name := .Name }}
+ {{ $count := .Count }}
+ {{ with $.Site.GetPage (printf "/%s/%s" $type $name) }}
+ <p>
+ <a href="{{ .Permalink }}">
+ {{ printf "(%d) %s" $count $name }}
+ </a>
+ </p>
+ {{ end }}
+{{ end }}
+
+{{ end }} \ No newline at end of file