Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/thegeeklab/hugo-geekdoc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Kaussow <mail@geeklabor.de>2021-05-19 23:42:57 +0300
committerGitHub <noreply@github.com>2021-05-19 23:42:57 +0300
commitdf901ba968b60135fb37bee32926ede9607a0049 (patch)
treec0e879a88885df7394a98ff44c7a609ba72b48cb
parent98271b1232990b448a267dc7543b62991b7a7ee8 (diff)
feat: add partial head/custom.html for custom page head elements (#131)v0.13.3
-rw-r--r--.drone.yml3
-rw-r--r--exampleSite/assets/sprites/regular.svg2
-rw-r--r--exampleSite/layouts/partials/head/custom.ci.html1
-rw-r--r--exampleSite/layouts/partials/head/custom.html1
-rw-r--r--layouts/_default/baseof.html1
-rw-r--r--layouts/partials/head/custom.html1
6 files changed, 7 insertions, 2 deletions
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)
-->
-<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
+<svg xmlns="http://www.w3.org/2000/svg" class="svg-sprite">
<symbol id="address-book" viewBox="0 0 448 512">
<path d="M436 160c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20V48c0-26.5-21.5-48-48-48H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h320c26.5 0 48-21.5 48-48v-48h20c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20v-64h20c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20v-64h20zm-68 304H48V48h320v416zM208 256c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm-89.6 128h179.2c12.4 0 22.4-8.6 22.4-19.2v-19.2c0-31.8-30.1-57.6-67.2-57.6-10.8 0-18.7 8-44.8 8-26.9 0-33.4-8-44.8-8-37.1 0-67.2 25.8-67.2 57.6v19.2c0 10.6 10 19.2 22.4 19.2z"></path>
</symbol>
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 @@
+<meta http-equiv="Content-Security-Policy" content="default-src 'self'; manifest-src 'self'; connect-src 'self'; font-src 'self'; img-src 'self' img.shields.io; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'">
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 @@
+<meta http-equiv="Content-Security-Policy" content="default-src 'self'; manifest-src 'self'; connect-src 'self'; font-src 'self'; img-src 'self' img.shields.io; script-src 'self' 'unsafe-inline'; style-src 'self'">
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" . }}
</head>
<body itemscope itemtype="https://schema.org/WebPage">
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 @@
+<!-- You can add custom elements to the page header here. -->