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 }}