diff options
author | Matt Kohls <mattkohls13@gmail.com> | 2019-12-18 01:04:15 -0500 |
---|---|---|
committer | Matt Kohls <mattkohls13@gmail.com> | 2019-12-18 01:04:15 -0500 |
commit | 6c53b50ec3afaabbe3f09c6e838baf63e17499b1 (patch) | |
tree | 8044f943886c78db68ff4c860ba8f5b918bebb28 /layouts/_default/terms.html | |
download | simplesource-6c53b50ec3afaabbe3f09c6e838baf63e17499b1.tar.gz simplesource-6c53b50ec3afaabbe3f09c6e838baf63e17499b1.tar.bz2 simplesource-6c53b50ec3afaabbe3f09c6e838baf63e17499b1.zip |
Mostly working initial stuff
TODO:
CSS needs to be defined
Index page lists about page when it shouldn't
Diffstat (limited to 'layouts/_default/terms.html')
-rw-r--r-- | layouts/_default/terms.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html new file mode 100644 index 0000000..20347df --- /dev/null +++ b/layouts/_default/terms.html @@ -0,0 +1,15 @@ +{{ partial "header.html" . }} +<div class="content"> + {{ if not .IsHome }} + <h1>{{ .Title | markdownify }}</h1> + {{ end }} + <ul> + {{ range $key, $value := .Data.Terms }} + <li> + <a href="{{ (print "/" $.Data.Plural "/" $key | urlize) | relURL }}">{{ $key }}</a> + ({{ len $value }}) + </li> + {{ end }} + </ul> +</div> +{{ partial "footer.html" . }} |