forked from Bunteshaus/bunteshaus.de
26 lines
1.1 KiB
HTML
26 lines
1.1 KiB
HTML
|
{{ define "intro" }}
|
||
|
{{ if ne .Content "" }}
|
||
|
{{ partial "snippets/content" (dict "content" .Content) }}
|
||
|
{{ end }}
|
||
|
{{ end }}
|
||
|
|
||
|
{{ define "content" }}
|
||
|
{{- $pages := where .Site.RegularPages "Section" "in" .Site.Params.searchSections -}}
|
||
|
{{ partial "news/gen_list" (dict "context" . "pages" $pages "content" .Content "type" .Type "paginate" true) }}
|
||
|
{{ end }}
|
||
|
|
||
|
{{ define "sidebar" }}
|
||
|
<aside class="sidebar">
|
||
|
<h3 class="align_menu">{{ if i18n "categories" }}{{ i18n "categories" }}{{ else }}{{ "Categories" }}{{ end }}</h3>
|
||
|
{{ range $taxonomyname, $taxonomy := .Site.Taxonomies.news }}
|
||
|
{{ $orig := $taxonomyname }}
|
||
|
{{ if ne (i18n $taxonomyname) "" }}
|
||
|
{{ $taxonomyname = i18n $taxonomyname }}
|
||
|
{{ else }}
|
||
|
{{ $taxonomyname = $taxonomyname | humanize }}
|
||
|
{{ end }}
|
||
|
<div class="align_menu"><a href="{{ "news/" | relLangURL}}{{ $orig | urlize }}">{{ $taxonomyname }}</a></div>
|
||
|
{{ end }}
|
||
|
</aside>
|
||
|
{{ end }}
|