mirror of https://github.com/jlelse/GoBlog
20 lines
534 B
Plaintext
20 lines
534 B
Plaintext
{{ define "title" }}
|
|
<title>{{ .Taxonomy.Title }} - {{ (blog .Blog).Title }}</title>
|
|
{{ end }}
|
|
|
|
{{ define "main" }}
|
|
<main>
|
|
{{ with .Taxonomy.Title }}<h1>{{ . }}</h1>{{ end }}
|
|
{{ with .Taxonomy.Description }}{{ md . }}{{ end }}
|
|
<ul>
|
|
{{ $taxonomy := .Taxonomy.Name }}
|
|
{{ range $i, $value := (sort .TaxonomyValues) }}
|
|
<li><a href="/{{ $taxonomy }}/{{ urlize . }}">{{ . }}</a></li>
|
|
{{ end }}
|
|
</ul>
|
|
</main>
|
|
{{ end }}
|
|
|
|
{{ define "taxonomy" }}
|
|
{{ template "base" . }}
|
|
{{ end }} |