summaryrefslogtreecommitdiff
path: root/themes/terminal/layouts/_default/terms.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/terminal/layouts/_default/terms.html')
-rw-r--r--themes/terminal/layouts/_default/terms.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/themes/terminal/layouts/_default/terms.html b/themes/terminal/layouts/_default/terms.html
new file mode 100644
index 0000000..399d665
--- /dev/null
+++ b/themes/terminal/layouts/_default/terms.html
@@ -0,0 +1,17 @@
+{{ define "main" }}
+ <div class="terms">
+ <h1>{{ .Title }}</h1>
+ <ul>
+ {{ $type := .Type }}
+ {{ range $key, $value := .Data.Terms.Alphabetical }}
+ {{ $name := .Name }}
+ {{ $count := .Count }}
+ {{ with $.Site.GetPage (printf "/%s/%s" $type $name) }}
+ <li>
+ <a class="terms-title" href="{{ .Permalink }}">{{ .Name }} ({{ $count }})</a>
+ </li>
+ {{ end }}
+ {{ end }}
+ </ul>
+ </div>
+{{ end }}