diff options
Diffstat (limited to 'themes/sapka-2024/layouts')
-rw-r--r-- | themes/sapka-2024/layouts/_default/list.txt (renamed from themes/sapka-2024/layouts/list.txt) | 0 | ||||
-rw-r--r-- | themes/sapka-2024/layouts/_default/page.html | 1 | ||||
-rw-r--r-- | themes/sapka-2024/layouts/_default/rss.xml (renamed from themes/sapka-2024/layouts/rss.xml) | 0 | ||||
-rw-r--r-- | themes/sapka-2024/layouts/_default/section.html | 26 |
4 files changed, 27 insertions, 0 deletions
diff --git a/themes/sapka-2024/layouts/list.txt b/themes/sapka-2024/layouts/_default/list.txt index 430a2d2..430a2d2 100644 --- a/themes/sapka-2024/layouts/list.txt +++ b/themes/sapka-2024/layouts/_default/list.txt diff --git a/themes/sapka-2024/layouts/_default/page.html b/themes/sapka-2024/layouts/_default/page.html index e69de29..93f59a3 100644 --- a/themes/sapka-2024/layouts/_default/page.html +++ b/themes/sapka-2024/layouts/_default/page.html @@ -0,0 +1 @@ +aa aa diff --git a/themes/sapka-2024/layouts/rss.xml b/themes/sapka-2024/layouts/_default/rss.xml index 99b99cd..99b99cd 100644 --- a/themes/sapka-2024/layouts/rss.xml +++ b/themes/sapka-2024/layouts/_default/rss.xml diff --git a/themes/sapka-2024/layouts/_default/section.html b/themes/sapka-2024/layouts/_default/section.html index e69de29..2b045b8 100644 --- a/themes/sapka-2024/layouts/_default/section.html +++ b/themes/sapka-2024/layouts/_default/section.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 }} |