forked from Bunteshaus/bunteshaus.de
fix tags n terms
This commit is contained in:
parent
b5cab0a9bb
commit
914dac712a
|
@ -8,8 +8,8 @@
|
|||
|
||||
{{ define "content" }}
|
||||
<div>
|
||||
{{ range .Data.Pages }}
|
||||
{{ . }}
|
||||
{{ end }}
|
||||
{{ range $.Site.Taxonomies.tags.ByCount }}
|
||||
<a href="{{ (printf "/tags/%s" .Name) | relLangURL }}"> {{ .Name }} <small>({{ .Count }})</small></a>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
|
12
themes/buha/layouts/_default/term.html
Normal file
12
themes/buha/layouts/_default/term.html
Normal file
|
@ -0,0 +1,12 @@
|
|||
{{ define "banner" }}
|
||||
{{ $image := "" }}
|
||||
{{ if .Resources.GetMatch "banner*" }}
|
||||
{{ $image = .Resources.GetMatch "banner*" }}
|
||||
{{ end }}
|
||||
{{ partial "snippets/banner_new" (dict "context" . "image" $image "title" .Title "section" .Section) }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "content" }}
|
||||
{{ $pages := .Data.Pages }}
|
||||
{{ partial "snippets/gen_list" (dict "context" . "pages" $pages "content" .Content "type" .Type "paginate" true) }}
|
||||
{{ end }}
|
|
@ -1,20 +0,0 @@
|
|||
{{ define "banner" }}
|
||||
{{ $image := "" }}
|
||||
{{ if .Resources.GetMatch "banner*" }}
|
||||
{{ $image = .Resources.GetMatch "banner*" }}
|
||||
{{ end }}
|
||||
{{ partial "snippets/banner_new" (dict "context" . "image" $image "title" .Title "section" .Section) }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "content" }}
|
||||
{{ if eq .Kind "taxonomy" }}
|
||||
<div>
|
||||
{{ range .Data.Pages }}
|
||||
<a href="{{ .Page.Permalink }}" class="underline" style="margin-right: 1rem;">{{ .Page.Title }} </a>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ else }}
|
||||
{{- $pages := .Data.Pages -}}
|
||||
{{ partial "snippets/gen_list" (dict "context" . "pages" $pages "content" .Content "type" .Type "paginate" true) }}
|
||||
{{ end }}
|
||||
{{ end }}
|
Loading…
Reference in New Issue
Block a user