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

github.com/AmazingRise/hugo-theme-diary.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rw-r--r--archetypes/default.md6
-rw-r--r--exampleSite/layouts/partials/extended_head.html2
-rw-r--r--layouts/partials/extended_head.html4
-rw-r--r--layouts/partials/head.html3
5 files changed, 13 insertions, 4 deletions
diff --git a/README.md b/README.md
index a5fac2c..fce1cdb 100644
--- a/README.md
+++ b/README.md
@@ -90,7 +90,7 @@ See [/exampleSite/config.toml](https://github.com/AmazingRise/hugo-theme-diary/b
* [Table Of Contents](https://github.com/AmazingRise/hugo-theme-diary/wiki/Table-Of-Contents)
* [Enable/Disable Comment](https://github.com/AmazingRise/hugo-theme-diary/wiki/Comment-Area)
- 3rd. party services
- * [Comment Services](https://github.com/AmazingRise/hugo-theme-diary/wiki/Comment-Area)
+ * [Comment Services](https://github.com/AmazingRise/hugo-theme-diary/wiki/Comment)
* [Google Analytics](https://github.com/AmazingRise/hugo-theme-diary/wiki/Customization#add-google-analytics)
* [Google Site Verification](https://github.com/AmazingRise/hugo-theme-diary/wiki/Customization#add-google-site-verification)
* [Google Search Intergration](https://github.com/AmazingRise/hugo-theme-diary/wiki/Customization#add-google-search-box-on-your-site)
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 b5825bb..5004364 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -125,4 +125,7 @@
{{ end }}
+<!-- head custom -->
+{{- partial "extended_head.html" . }}
+
</head>