diff options
Diffstat (limited to 'themes/sapka-2024/layouts/_default/list.html')
-rw-r--r-- | themes/sapka-2024/layouts/_default/list.html | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/themes/sapka-2024/layouts/_default/list.html b/themes/sapka-2024/layouts/_default/list.html new file mode 100644 index 0000000..2b045b8 --- /dev/null +++ b/themes/sapka-2024/layouts/_default/list.html @@ -0,0 +1,26 @@ +{{ define "main" }} + +{{if .Page.Content}} + {{ .Page.Content }} + {{- if .Params.primary_menu }} + {{ partial "single/bottom_nav.html" (dict "menuID" .Page.Params.primary_menu "page" .) }} + {{- end }} + + {{ partial "single/dates.html" . }} +{{ 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 }} |