This commit is contained in:
14
themes/Eclectic/layouts/taxonomy/list.html
Normal file
14
themes/Eclectic/layouts/taxonomy/list.html
Normal file
@@ -0,0 +1,14 @@
|
||||
{{ define "main" }}
|
||||
{{- partialCached "util/background.html" "bg" -}}
|
||||
<article class="list">
|
||||
<h1 class='title'>{{.Title | humanize}}</h1>
|
||||
<span class='subtitle'>{{.Params.Subtitle}}</span>
|
||||
{{with .Content}}<div class="content">{{ .}}</div> {{- end -}}
|
||||
<ul class="blog-posts items-{{.Paginator.PageSize}}">
|
||||
{{ range .Pages}}
|
||||
{{- partialCached "util/post.html" . .RelPermalink -}}
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ template "_internal/pagination.html" . }}
|
||||
</article>
|
||||
{{ end }}
|
32
themes/Eclectic/layouts/taxonomy/terms.html
Normal file
32
themes/Eclectic/layouts/taxonomy/terms.html
Normal file
@@ -0,0 +1,32 @@
|
||||
{{ define "main" }}
|
||||
{{- partialCached "util/background.html" "bg" -}}
|
||||
<article class="terms">
|
||||
<h1 class='title'>{{.Title}}</h1>
|
||||
<span class='subtitle'>The website has the following {{.Title | lower}}.</span>
|
||||
{{.Content}}
|
||||
<ol>
|
||||
{{ $type := .Type }}
|
||||
{{ range $key, $value := .Data.Terms.Alphabetical }}
|
||||
{{ $name := .Name }}
|
||||
{{ $count := .Count }}
|
||||
{{ $pages := .Pages }}
|
||||
{{ with $.Site.GetPage (printf "/%s/%s" $type $name) }}
|
||||
<li>
|
||||
<input type="radio" name="categories" id="{{$name}}">
|
||||
<label for="{{$name}}">
|
||||
<h4><a href="{{ .RelPermalink }}">{{ $name | humanize }} </a></h4>
|
||||
<small> ({{ $count }} post{{if gt $count 1}}s{{end}})</small>
|
||||
</label>
|
||||
<ul>
|
||||
{{ range $pages }}
|
||||
<li hugo-nav="{{ .RelPermalink}}"><a
|
||||
href="{{ .RelPermalink}}">{{ default (.File.ContentBaseName | humanize) .LinkTitle }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</ol>
|
||||
<input type="radio" name="categories" id="cross" checked>
|
||||
</article>
|
||||
{{ end }}
|
Reference in New Issue
Block a user