From ec9d8921713a8efae445299ca9a30f741c905da3 Mon Sep 17 00:00:00 2001 From: tdro Date: Sat, 28 Jan 2023 23:19:09 -0500 Subject: themes/default/layouts/_default: Name spacing Make list.html -> index.html and identify sections by name. Ignore Deno vendor folder. --- themes/default/layouts/_default/section.media.html | 68 ++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 themes/default/layouts/_default/section.media.html (limited to 'themes/default/layouts/_default/section.media.html') diff --git a/themes/default/layouts/_default/section.media.html b/themes/default/layouts/_default/section.media.html new file mode 100644 index 0000000..a140801 --- /dev/null +++ b/themes/default/layouts/_default/section.media.html @@ -0,0 +1,68 @@ +{{ define "styles" }} +{{ $author := partial "author-user.html" . }} + +{{ end }} + +{{ define "middle" }} + + {{ partial "navigator-middle.html" + (dict + "Title" "Media" + "Subtitle" (partial "count-media.html" .) + "Icon" "arrow-left" + "IconLabel" "Back" + "Href" "/" + "Id" "back" + "Context" . + ) + }} + + {{ partial "profile.html" . }} + + {{- $author := partial "author-user.html" . -}} + + {{ $count := 0 }} + {{ $result := false }} + + {{ range .Site.Pages }} + {{ if or + (in .Content "
") + (in .Content "") + (in .Content "") + (in .Content "") + }} + {{ if eq .Type $author }} + {{ $result = true }} + {{ $count = add $count 1 }} + {{ if le $count 10 }} + {{ .Render "summary" }} + {{ end }} + {{ end }} + {{ end }} + {{ end }} + + {{ if not $result }} + + {{ end }} + + {{ partial "pagination.html" . }} + +{{ end }} + +{{ define "right" }} + {{- partial "navigator-right.html" . -}} +{{ end }} -- cgit v1.2.3