diff --git a/layouts/partials/head.html b/layouts/partials/head.html index d1d8636..35c2e8b 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -50,6 +50,13 @@ {{ end }} {{ end }} + {{ if .Params.custom_css }} + {{ range $customCss := .Params.custom_css }} + {{ $renderedCustomCss := page.Resources.Get $customCss | css.Sass (dict "includePaths" (slice "themes/vanilla/assets/scss")) | resources.Minify }} + + {{ end }} + {{ end }} + {{ if hugo.IsServer }} diff --git a/layouts/writing/baseof.html b/layouts/writing/baseof.html new file mode 100644 index 0000000..4648c7c --- /dev/null +++ b/layouts/writing/baseof.html @@ -0,0 +1,25 @@ +{{- /* Note: changing the baseof template because the title, tags, etc. of a regular post are still valid. */ -}} + + + {{- partial "head.html" . -}} +
+ {{ with .Params.body_start_partial }} + {{ partial . $ }} + {{ end }} + + + {{ $writingcss := resources.Get "scss/writing.scss" | css.Sass | resources.Minify }} + + {{- partial "header.html" . -}} +