From ffe43db394a3dc25354fccc2cbf388eca3705306 Mon Sep 17 00:00:00 2001 From: lauralani Date: Thu, 10 Aug 2023 08:03:44 +0200 Subject: [PATCH] update layouts do include partials; preload fonts --- layouts/_default/baseof.html | 9 ++++----- layouts/home.html | 26 ++++++++++++++------------ layouts/partials/head/defaults.html | 2 ++ layouts/partials/head/sharing.html | 2 ++ layouts/partials/head/styling.html | 3 +++ 5 files changed, 25 insertions(+), 17 deletions(-) create mode 100644 layouts/partials/head/defaults.html create mode 100644 layouts/partials/head/sharing.html create mode 100644 layouts/partials/head/styling.html diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 6091cfb..77cf52f 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,11 +1,10 @@ - + - - {{ or .Title .Site.Title }}{{ if ne .Kind "home" }} | {{ .CurrentSection.Title }}{{ end }} - {{ $style := resources.Get "scss/style.scss" | toCSS | minify }} - + {{ partial "head/defaults.html" . }} + {{ partial "head/styling.html" . }} + {{ partial "head/sharing.html" . }} {{ block "page" . }}{{ end }} diff --git a/layouts/home.html b/layouts/home.html index 8a5a178..fafc403 100644 --- a/layouts/home.html +++ b/layouts/home.html @@ -1,14 +1,16 @@ - - - - - {{ or .Title .Site.Title }} - {{ $style := resources.Get "scss/style.scss" | toCSS | minify }} - - - -

{{ .Site.Title }}

- {{ .Content }} - + + + + {{ or .Title .Site.Title }} + {{ partial "head/defaults.html" . }} + {{ partial "head/styling.html" . }} + {{ partial "head/sharing.html" . }} + + + +

{{ .Site.Title }}

+ {{ .Content }} + + \ No newline at end of file diff --git a/layouts/partials/head/defaults.html b/layouts/partials/head/defaults.html new file mode 100644 index 0000000..98df045 --- /dev/null +++ b/layouts/partials/head/defaults.html @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/layouts/partials/head/sharing.html b/layouts/partials/head/sharing.html new file mode 100644 index 0000000..63b758b --- /dev/null +++ b/layouts/partials/head/sharing.html @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/layouts/partials/head/styling.html b/layouts/partials/head/styling.html new file mode 100644 index 0000000..b1fdfc6 --- /dev/null +++ b/layouts/partials/head/styling.html @@ -0,0 +1,3 @@ +{{ $style := resources.Get "scss/style.scss" | toCSS | minify }} + + \ No newline at end of file