From 11bb22ab301f37f657a8ce27613876d2b0eb0c69 Mon Sep 17 00:00:00 2001 From: steverusso Date: Mon, 1 Jun 2020 19:29:02 -0400 Subject: [PATCH] Global CSS and JS partials. --- layouts/_default/baseof.html | 6 ++---- layouts/partials/css-global.html | 3 +++ layouts/partials/{scripts/scripts.html => js-global.html} | 0 3 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 layouts/partials/css-global.html rename layouts/partials/{scripts/scripts.html => js-global.html} (100%) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 482130f..2622f02 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -4,9 +4,7 @@ - - - + {{ partialCached "css-global.html" . }} {{ .Site.Title }} {{ block "title" . }} {{ with .Title }} | {{ . }} {{ end }} {{ end }} @@ -20,6 +18,6 @@ {{ partial "footer.html" . }} - {{ partial "scripts/scripts.html" . }} + {{ partial "js-global.html" . }} diff --git a/layouts/partials/css-global.html b/layouts/partials/css-global.html new file mode 100644 index 0000000..297f35a --- /dev/null +++ b/layouts/partials/css-global.html @@ -0,0 +1,3 @@ + + + diff --git a/layouts/partials/scripts/scripts.html b/layouts/partials/js-global.html similarity index 100% rename from layouts/partials/scripts/scripts.html rename to layouts/partials/js-global.html