mirror of
https://github.com/jlelse/GoBlog
synced 2024-06-29 11:47:34 +00:00
20 lines
519 B
Plaintext
20 lines
519 B
Plaintext
{{ define "title" }}
|
|
<title>{{ .Taxonomy.Title }} - {{ 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 := .TaxonomyValues }}
|
|
<li><a href="/{{ $taxonomy }}/{{ urlize . }}">{{ . }}</a></li>
|
|
{{ end }}
|
|
</ul>
|
|
</main>
|
|
{{ end }}
|
|
|
|
{{ define "taxonomy" }}
|
|
{{ template "base" . }}
|
|
{{ end }} |