diff options
author | Yurizal Susanto <rizal.sagi@gmail.com> | 2017-07-03 05:33:26 +0300 |
---|---|---|
committer | Yurizal Susanto <rizal.sagi@gmail.com> | 2017-07-03 05:33:26 +0300 |
commit | 5bacd32ab64c86bfefd2c03300bdb71c54d81eef (patch) | |
tree | 67dbf59ecb42066e3343d531cfad12c0d0dd1cf5 /layouts | |
parent | e73dc4e21a00d6a1c54476b7baeec7988161ea5f (diff) |
Add terms template
Make title template aware of the change too
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/terms.html | 13 | ||||
-rw-r--r-- | layouts/partials/title.html | 2 |
2 files changed, 14 insertions, 1 deletions
diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html new file mode 100644 index 0000000..c3e475b --- /dev/null +++ b/layouts/_default/terms.html @@ -0,0 +1,13 @@ +{{ partial "header" . }} +<section> + {{ partial "title" . }} + {{ with .Content }}{{.}}{{ end }} + <ul style="list-style: none;"> + {{ range .Data.Terms.Alphabetical }} + <li style="display: inline;"> + <a href="/{{$.Data.Plural}}/{{.Term}}">{{ .Term }}</a> + </li> + {{ end }} + </ul> +</section> +{{ partial "footer" . }} diff --git a/layouts/partials/title.html b/layouts/partials/title.html index 649f59a..2b306b7 100644 --- a/layouts/partials/title.html +++ b/layouts/partials/title.html @@ -4,7 +4,7 @@ <h1>{{ .Site.Title }}</h1> <h5>{{- with .Site.Params.Tagline -}}{{.}}{{- end -}}</h5> <!-- Section List --> - {{- else if eq .Kind "section" -}} + {{- else if ( or ( eq .Kind "section") ( eq .Kind "taxonomyTerm" ) ) -}} <h1>{{ .Title }}</h1> <!-- Ordinary Page --> {{- else if eq .Kind "page" -}} |