From 6b800dcbf6d92e869de97d027d55197aa8b9bf1c Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Tue, 15 Nov 2022 22:12:54 -0800 Subject: [PATCH] Add single and section pages to the about layouts section --- layouts/about/section.html | 33 +++++++++++++++++++++++++++++++++ layouts/about/single.html | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 layouts/about/section.html create mode 100644 layouts/about/single.html diff --git a/layouts/about/section.html b/layouts/about/section.html new file mode 100644 index 0000000..3a8bfe9 --- /dev/null +++ b/layouts/about/section.html @@ -0,0 +1,33 @@ +{{ define "header" }} + {{ partial "header.html" . }} +{{ end }} + +{{ define "main" }} + {{ partial "single_main.html" . }} +{{ end }} + +{{ define "scripts" }} + {{- if .HasShortcode "figures/railroad" -}} + {{- with partial "resources/railroad_utils.html" . -}} + + {{- end -}} + {{- end -}} + + {{- if .HasShortcode "figures/p5" -}} + {{- with partial "secure_asset.html" "scripts/lib/p5-1.5.0.js" -}} + + {{- end -}} + {{- with partial "secure_asset.html" "scripts/sketch-utils.js" -}} + + {{- end -}} + {{- end -}} + + {{- range $script := .Resources.Match "*.js" -}} + {{- $isModule := default true $script.Params.is_module -}} + + {{- end -}} +{{ end }} + +{{ define "footer" }} + {{ partial "footer.html" . }} +{{ end }} diff --git a/layouts/about/single.html b/layouts/about/single.html new file mode 100644 index 0000000..3a8bfe9 --- /dev/null +++ b/layouts/about/single.html @@ -0,0 +1,33 @@ +{{ define "header" }} + {{ partial "header.html" . }} +{{ end }} + +{{ define "main" }} + {{ partial "single_main.html" . }} +{{ end }} + +{{ define "scripts" }} + {{- if .HasShortcode "figures/railroad" -}} + {{- with partial "resources/railroad_utils.html" . -}} + + {{- end -}} + {{- end -}} + + {{- if .HasShortcode "figures/p5" -}} + {{- with partial "secure_asset.html" "scripts/lib/p5-1.5.0.js" -}} + + {{- end -}} + {{- with partial "secure_asset.html" "scripts/sketch-utils.js" -}} + + {{- end -}} + {{- end -}} + + {{- range $script := .Resources.Match "*.js" -}} + {{- $isModule := default true $script.Params.is_module -}} + + {{- end -}} +{{ end }} + +{{ define "footer" }} + {{ partial "footer.html" . }} +{{ end }}