From df901ba968b60135fb37bee32926ede9607a0049 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Wed, 19 May 2021 22:42:57 +0200 Subject: [PATCH] feat: add partial head/custom.html for custom page head elements (#131) --- .drone.yml | 3 ++- exampleSite/assets/sprites/regular.svg | 2 +- exampleSite/layouts/partials/head/custom.ci.html | 1 + exampleSite/layouts/partials/head/custom.html | 1 + layouts/_default/baseof.html | 1 + layouts/partials/head/custom.html | 1 + 6 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 exampleSite/layouts/partials/head/custom.ci.html create mode 100644 exampleSite/layouts/partials/head/custom.html create mode 100644 layouts/partials/head/custom.html diff --git a/.drone.yml b/.drone.yml index e2072b1..c168bf7 100644 --- a/.drone.yml +++ b/.drone.yml @@ -20,6 +20,7 @@ steps: image: thegeeklab/hugo:0.83.1 commands: - mkdir exampleSite/themes/ && ln -s $(pwd)/ exampleSite/themes/hugo-geekdoc + - cp exampleSite/layouts/partials/head/custom.ci.html exampleSite/layouts/partials/head/custom.html - hugo -s exampleSite/ -b http://localhost/ - name: html-validation @@ -270,6 +271,6 @@ depends_on: --- kind: signature -hmac: 2c0c709a64128fd42c47d3549184ac29e2225be8de1953fa2e72b63aa0b7e871 +hmac: e2ef57c014893437655882116e07f1b8ea211adf60aa479c52113df515f51b58 ... diff --git a/exampleSite/assets/sprites/regular.svg b/exampleSite/assets/sprites/regular.svg index 2edd1f7..c7a3da1 100644 --- a/exampleSite/assets/sprites/regular.svg +++ b/exampleSite/assets/sprites/regular.svg @@ -2,7 +2,7 @@ Font Awesome Free 5.15.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --> - + diff --git a/exampleSite/layouts/partials/head/custom.ci.html b/exampleSite/layouts/partials/head/custom.ci.html new file mode 100644 index 0000000..63bea40 --- /dev/null +++ b/exampleSite/layouts/partials/head/custom.ci.html @@ -0,0 +1 @@ + diff --git a/exampleSite/layouts/partials/head/custom.html b/exampleSite/layouts/partials/head/custom.html new file mode 100644 index 0000000..53a6e85 --- /dev/null +++ b/exampleSite/layouts/partials/head/custom.html @@ -0,0 +1 @@ + diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index a5a9f8f..09e8d08 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -7,6 +7,7 @@ {{ partial "head/favicons" . }} {{ partial "head/others" . }} + {{ partial "head/custom" . }} diff --git a/layouts/partials/head/custom.html b/layouts/partials/head/custom.html new file mode 100644 index 0000000..44862c7 --- /dev/null +++ b/layouts/partials/head/custom.html @@ -0,0 +1 @@ +