aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/_default/index.html
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2023-01-28 23:19:09 -0500
committertdro <tdro@noreply.example.com>2023-01-28 23:19:09 -0500
commitec9d8921713a8efae445299ca9a30f741c905da3 (patch)
treeb59dce952c5f3e68300da47aa99e17dbfd764a60 /themes/default/layouts/_default/index.html
parentad16ca0ca6c068403fd359bcf9729db75b8321ac (diff)
downloadcanory-ec9d8921713a8efae445299ca9a30f741c905da3.tar.gz
canory-ec9d8921713a8efae445299ca9a30f741c905da3.tar.bz2
canory-ec9d8921713a8efae445299ca9a30f741c905da3.zip
themes/default/layouts/_default: Name spacing
Make list.html -> index.html and identify sections by name. Ignore Deno vendor folder.
Diffstat (limited to 'themes/default/layouts/_default/index.html')
-rw-r--r--themes/default/layouts/_default/index.html37
1 files changed, 37 insertions, 0 deletions
diff --git a/themes/default/layouts/_default/index.html b/themes/default/layouts/_default/index.html
new file mode 100644
index 0000000..3fc93ce
--- /dev/null
+++ b/themes/default/layouts/_default/index.html
@@ -0,0 +1,37 @@
+{{ define "styles" }}
+<style>
+ {{ partial "styles-navigator.html" (dict "Link" "/") | safeCSS }}
+</style>
+{{ end }}
+
+{{ define "middle" }}
+
+ {{ partial "navigator-middle.html"
+ (dict
+ "Title" "Home"
+ "Subtitle" (partial "count-total-messages.html" .)
+ "Context" .
+ )
+ }}
+
+ {{ range .Paginator.Pages }}
+ {{ .Render "summary" }}
+ {{ end }}
+
+ {{ partial "pagination.html" . }}
+
+{{ end }}
+
+{{ define "right" }}
+ {{- partial "author-list.html" . -}}
+
+ {{ range first 1 (where .Site.Pages "Params.Author" .Site.Author.default.picturegallery) }}
+ {{- partial "gallery.html" . -}}
+ {{ end }}
+
+ {{ range first 1 (where .Site.Pages "Params.Author" .Site.Author.default.webring) }}
+ {{- partial "following-list.html" . -}}
+ {{- partial "webring.html" . -}}
+ {{ end }}
+
+{{ end }}