From a2f8a946422120f47e1c6fbefa41ee5ec0722b94 Mon Sep 17 00:00:00 2001 From: Henk Verlinde Date: Thu, 24 Oct 2024 11:48:43 +0200 Subject: [PATCH] Update Vermeer template for customizations support --- template-vermeer/assets/images/.gitkeep | 0 template-vermeer/assets/js/custom.js | 1 + template-vermeer/assets/scss/common/_custom.scss | 1 + .../assets/scss/common/_variables-custom.scss | 1 + template-vermeer/assets/svgs/.gitkeep | 0 .../partials/footer/script-footer-custom.html | 13 +++++++++++++ .../layouts/partials/head/custom-head.html | 1 + .../layouts/partials/head/script-header.html | 1 + template-vermeer/static/fonts/.gitkeep | 0 9 files changed, 18 insertions(+) create mode 100644 template-vermeer/assets/images/.gitkeep create mode 100644 template-vermeer/assets/js/custom.js create mode 100644 template-vermeer/assets/scss/common/_custom.scss create mode 100644 template-vermeer/assets/scss/common/_variables-custom.scss create mode 100644 template-vermeer/assets/svgs/.gitkeep create mode 100644 template-vermeer/layouts/partials/footer/script-footer-custom.html create mode 100644 template-vermeer/layouts/partials/head/custom-head.html create mode 100644 template-vermeer/layouts/partials/head/script-header.html create mode 100644 template-vermeer/static/fonts/.gitkeep diff --git a/template-vermeer/assets/images/.gitkeep b/template-vermeer/assets/images/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/template-vermeer/assets/js/custom.js b/template-vermeer/assets/js/custom.js new file mode 100644 index 0000000..b174611 --- /dev/null +++ b/template-vermeer/assets/js/custom.js @@ -0,0 +1 @@ +// Put your custom JS code here diff --git a/template-vermeer/assets/scss/common/_custom.scss b/template-vermeer/assets/scss/common/_custom.scss new file mode 100644 index 0000000..cc4e2b5 --- /dev/null +++ b/template-vermeer/assets/scss/common/_custom.scss @@ -0,0 +1 @@ +// Put your custom SCSS code here diff --git a/template-vermeer/assets/scss/common/_variables-custom.scss b/template-vermeer/assets/scss/common/_variables-custom.scss new file mode 100644 index 0000000..56c9eb7 --- /dev/null +++ b/template-vermeer/assets/scss/common/_variables-custom.scss @@ -0,0 +1 @@ +// Put your custom SCSS variables here diff --git a/template-vermeer/assets/svgs/.gitkeep b/template-vermeer/assets/svgs/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/template-vermeer/layouts/partials/footer/script-footer-custom.html b/template-vermeer/layouts/partials/footer/script-footer-custom.html new file mode 100644 index 0000000..d570e83 --- /dev/null +++ b/template-vermeer/layouts/partials/footer/script-footer-custom.html @@ -0,0 +1,13 @@ +{{/* Put your custom tags here */}} + +{{/* EXAMPLE - only load script for production +{{ if eq (hugo.Environment) "production" -}} + {{ partial "footer/esbuild" (dict "src" "js/instantpage.js" "load" "async" "transpile" false) -}} +{{ end -}} +*/}} + +{{/* EXAMPLE - only load script for a page type e.g. contact or gallery +{{ if eq .Type "gallery" -}} + {{ partial "footer/esbuild" (dict "src" "js/gallery.js" "load" "async" "transpile" false) -}} +{{ end -}} +*/}} diff --git a/template-vermeer/layouts/partials/head/custom-head.html b/template-vermeer/layouts/partials/head/custom-head.html new file mode 100644 index 0000000..0c59d7f --- /dev/null +++ b/template-vermeer/layouts/partials/head/custom-head.html @@ -0,0 +1 @@ + diff --git a/template-vermeer/layouts/partials/head/script-header.html b/template-vermeer/layouts/partials/head/script-header.html new file mode 100644 index 0000000..ae068e3 --- /dev/null +++ b/template-vermeer/layouts/partials/head/script-header.html @@ -0,0 +1 @@ + diff --git a/template-vermeer/static/fonts/.gitkeep b/template-vermeer/static/fonts/.gitkeep new file mode 100644 index 0000000..e69de29