blob: a7b0668fa9c741fec79773f66723bce8cdc76cd4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
{{ define "main" }}
{{if .Page.Content}}
{{ .Page.Content }}
{{ else }}
{{ if in .Page.Params.Categories "blog" }}
{{ partial "partials/blog_index.html" . }}
{{ else if in .Page.Params.Categories "article" }}
{{ partial "partials/article_index.html" . }}
{{ else }}
<h2>Articles</h2>
{{ range .Data.Pages }}
{{ partial "partials/article_list_item.html" . }}
{{ end }}
{{ end }}
{{end}}
{{ end }}
|