diff options
author | Rise <8315221+AmazingRise@users.noreply.github.com> | 2021-05-29 12:30:23 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-29 12:30:23 +0300 |
commit | 2d595c68f8935be35b3e24e49b29d3f89f7c529c (patch) | |
tree | ca951f54ff0a9ddd664f531fcf0af735fc97b1fd | |
parent | b228ec6adb3416022cf20f2c74b3a64098646494 (diff) | |
parent | a719439e4c6633f9bacbbdb060ae986d37b41799 (diff) |
Merge pull request #94 from vanhumbeecka/master
#93 add 'extended_head.html' partial
-rw-r--r-- | archetypes/default.md | 6 | ||||
-rw-r--r-- | exampleSite/layouts/partials/extended_head.html | 2 | ||||
-rw-r--r-- | layouts/partials/extended_head.html | 4 | ||||
-rw-r--r-- | layouts/partials/head.html | 3 |
4 files changed, 12 insertions, 3 deletions
diff --git a/archetypes/default.md b/archetypes/default.md index f8184fe..d1ef720 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -1,12 +1,12 @@ --- title: "" -date: +date: description: "" tags: [] featured_image: "" # images is optional, but needed for showing Twitter Card images: [] -categories: -comment : true +categories: +comment: true draft: true --- diff --git a/exampleSite/layouts/partials/extended_head.html b/exampleSite/layouts/partials/extended_head.html new file mode 100644 index 0000000..102c371 --- /dev/null +++ b/exampleSite/layouts/partials/extended_head.html @@ -0,0 +1,2 @@ +<!-- Add your custom scripts/links/tags here that should go in the <head> section --> +<script>console.log("Hello from 'layouts/partials/extended_head.html'")</script>
\ No newline at end of file diff --git a/layouts/partials/extended_head.html b/layouts/partials/extended_head.html new file mode 100644 index 0000000..5fea31d --- /dev/null +++ b/layouts/partials/extended_head.html @@ -0,0 +1,4 @@ +<!-- +If you want to include any custom html just before </head>, put it in /layouts/partials/extended_head.html +Do not put anything in this file - it's only here so that hugo won't throw an error if /layouts/partials/extended_head.html doesn't exist. +-->
\ No newline at end of file diff --git a/layouts/partials/head.html b/layouts/partials/head.html index dac390a..d17e57c 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -127,4 +127,7 @@ $( <script src="//cdn.jsdelivr.net/npm/@waline/client/dist/Waline.min.js"></script> {{ end }} +<!-- head custom --> +{{- partial "extended_head.html" . }} + </head> |