2022-06-17 17:45:53 +02:00
|
|
|
{{ define "intro" }}
|
2022-06-12 13:50:06 +02:00
|
|
|
{{ if ne .Content "" }}
|
|
|
|
{{ partial "snippets/content" (dict "content" .Content) }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
2022-06-17 17:45:53 +02:00
|
|
|
{{ define "content" }}
|
2022-04-09 21:34:04 +02:00
|
|
|
{{- $pages := where .Site.RegularPages "Permalink" "!=" .Permalink -}}
|
2022-04-10 02:24:33 +02:00
|
|
|
{{- $paginator := "" -}}
|
2022-05-06 11:49:30 +02:00
|
|
|
{{- $partial := .Layout -}}
|
2022-06-17 17:45:53 +02:00
|
|
|
{{ $folder := "layout" }}
|
2022-05-06 11:49:30 +02:00
|
|
|
{{- $paginate := true -}}
|
2022-06-17 17:45:53 +02:00
|
|
|
{{ if eq .Kind "term" }}
|
2022-06-13 04:08:02 +02:00
|
|
|
{{- $pages = .Data.Pages -}}
|
2022-06-17 17:45:53 +02:00
|
|
|
{{ $partial = "gen_list" }}
|
|
|
|
{{ $folder = "news" }}
|
|
|
|
{{ else if eq .Kind "taxonomy" }}
|
|
|
|
{{ $paginate = false }}
|
|
|
|
{{- $pages = .Data.Terms.ByCount -}}
|
|
|
|
{{ $partial = "tags_n_categories" }}
|
|
|
|
{{ end }}
|
|
|
|
{{ if and $folder $partial }}
|
|
|
|
{{ $partial = string (printf "%s/%s" $folder $partial) }}
|
|
|
|
{{ partial $partial (dict "context" . "pages" $pages "content" .Content "type" .Type "paginate" $paginate) }}
|
2022-04-09 21:34:04 +02:00
|
|
|
{{ end }}
|
2022-05-06 11:49:30 +02:00
|
|
|
{{ end }}
|
|
|
|
|
2022-06-17 17:45:53 +02:00
|
|
|
|