aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/_default
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2023-11-02 11:11:08 -0400
committertdro <tdro@noreply.example.com>2023-11-02 11:11:08 -0400
commitc77a1e4d78f017aac84525e27c510ab56c96ede1 (patch)
tree28d86cc5eb0b5c4875e85db1483bb2ce589c2b8e /themes/default/layouts/_default
parentf372675eb5ab4f6acabae14479479c04c3d139f5 (diff)
downloadcanory-c77a1e4d78f017aac84525e27c510ab56c96ede1.tar.gz
canory-c77a1e4d78f017aac84525e27c510ab56c96ede1.tar.bz2
canory-c77a1e4d78f017aac84525e27c510ab56c96ede1.zip
themes/default/layouts/_default: Wrap more sections in modify
Keep it disabled
Diffstat (limited to 'themes/default/layouts/_default')
-rw-r--r--themes/default/layouts/_default/home.authors.section.html21
-rw-r--r--themes/default/layouts/_default/section.following.html9
-rw-r--r--themes/default/layouts/_default/section.gallery.html9
-rw-r--r--themes/default/layouts/_default/section.webring.html9
4 files changed, 39 insertions, 9 deletions
diff --git a/themes/default/layouts/_default/home.authors.section.html b/themes/default/layouts/_default/home.authors.section.html
index e665b66..4374f69 100644
--- a/themes/default/layouts/_default/home.authors.section.html
+++ b/themes/default/layouts/_default/home.authors.section.html
@@ -1,11 +1,20 @@
{{- $authors := partial "function-authors-slice.html" . -}}
-{{- range $author := first 3 $authors -}}
-{{- $data := index $.Site.Data $author | default "default" -}}
-{{- $date := (index (first 1 (where $.Site.Pages.ByDate.Reverse "Section" $author)) 0).Date -}}
-{{- partial "author-card.html" (dict
- "Data" $data
- "Date" $date
+{{- $modified := partial "function-page-modified.html"
+ (dict
+ "Context" .
+ "Disable" true
)
-}}
+
+{{- if $modified -}}
+ {{- range $author := first 3 $authors -}}
+ {{- $data := index $.Site.Data $author | default "default" -}}
+ {{- $date := (index (first 1 (where $.Site.Pages.ByDate.Reverse "Section" $author)) 0).Date -}}
+ {{- partial "author-card.html" (dict
+ "Data" $data
+ "Date" $date
+ )
+ -}}
+ {{- end -}}
{{- end -}}
diff --git a/themes/default/layouts/_default/section.following.html b/themes/default/layouts/_default/section.following.html
index 0eba618..c3bfc7b 100644
--- a/themes/default/layouts/_default/section.following.html
+++ b/themes/default/layouts/_default/section.following.html
@@ -1,6 +1,13 @@
{{- $parent := eq (len .Page.Ancestors) 1 -}}
-{{- if $parent -}}
+{{- $modified := partial "function-page-modified.html"
+ (dict
+ "Context" .
+ "Disable" true
+ )
+-}}
+
+{{- if (and $parent $modified) -}}
{{- $sources := slice -}}
{{- $author := partial "function-authors-data.html" . -}}
{{- $feeds := partial "function-generate-feeds.html" . -}}
diff --git a/themes/default/layouts/_default/section.gallery.html b/themes/default/layouts/_default/section.gallery.html
index 4b1c6fd..761a276 100644
--- a/themes/default/layouts/_default/section.gallery.html
+++ b/themes/default/layouts/_default/section.gallery.html
@@ -1,5 +1,12 @@
{{- $parent := eq (len .Page.Ancestors) 1 -}}
-{{- if $parent -}}
+{{- $modified := partial "function-page-modified.html"
+ (dict
+ "Context" .
+ "Disable" true
+ )
+-}}
+
+{{- if (and $parent $modified) -}}
{{- partial "gallery-walk.html" . -}}
{{- end -}}
diff --git a/themes/default/layouts/_default/section.webring.html b/themes/default/layouts/_default/section.webring.html
index 9816dbf..58181e1 100644
--- a/themes/default/layouts/_default/section.webring.html
+++ b/themes/default/layouts/_default/section.webring.html
@@ -1,6 +1,13 @@
{{- $parent := eq (len .Page.Ancestors) 1 -}}
-{{- if $parent -}}
+{{- $modified := partial "function-page-modified.html"
+ (dict
+ "Context" .
+ "Disable" true
+ )
+-}}
+
+{{- if (and $parent $modified) -}}
{{- $items := slice -}}
{{- $sources := slice -}}
{{- $author := partial "function-authors-data.html" . -}}