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

github.com/curttimson/hugo-theme-massively.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCurtis Timson <curt@live.co.uk>2022-04-04 14:21:49 +0300
committerGitHub <noreply@github.com>2022-04-04 14:21:49 +0300
commit4397e627ca22751bbbb94e33f10393097c49074c (patch)
tree0b9c82f00a3733c4d0bcce2ff40805c98fbac1d9
parent41d1b45936cf5712c6fcce9d788b837898ef75c7 (diff)
✨ Custom htmlhead (#105)
* ✨ Custom htmlhead * update readme * update version
-rw-r--r--README.md8
-rw-r--r--layouts/partials/htmlhead.custom.html0
-rw-r--r--layouts/partials/htmlhead.html1
-rw-r--r--package-lock.json4
-rw-r--r--package.json8
5 files changed, 13 insertions, 8 deletions
diff --git a/README.md b/README.md
index bf13def..e78cbb5 100644
--- a/README.md
+++ b/README.md
@@ -41,6 +41,10 @@ The cover image URL is hard-coded, therefore to replace this add an image to the
## Custom Front Matter
- `disableComments` - If set to `true` this will disable comments on the post when Disqus is enabled.
+## Custom `<head>`
+
+If you wish to add custom CSS overrides, or other elements in the `<head>`, then this can be done by adding the following to the root of your Hugo app: `layouts/partials/htmlhead.custom.html`. Any content added to this file will then be injected at the end of the `<head>`.
+
## Development
### Example Site Production Deployment
#### Production Deployment
@@ -52,12 +56,12 @@ $ hugo --config config-prod.toml
#### Running Locally
-```
+```shell
$ npm i
$ npm run hugo-dev
```
OR
-```
+```shell
$ cd exampleSite
$ hugo server --themesDir ../..
```
diff --git a/layouts/partials/htmlhead.custom.html b/layouts/partials/htmlhead.custom.html
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/layouts/partials/htmlhead.custom.html
diff --git a/layouts/partials/htmlhead.html b/layouts/partials/htmlhead.html
index 16fd6d8..5124a9e 100644
--- a/layouts/partials/htmlhead.html
+++ b/layouts/partials/htmlhead.html
@@ -22,4 +22,5 @@
{{ end }}
{{ $noscript := resources.Get "scss/noscript.scss" | resources.ExecuteAsTemplate "noscript.scss" . | toCSS (dict "targetPath" "assets/css/noscript.css" "enableSourceMap" false) }}
<noscript><link rel="stylesheet" href='{{ $noscript.RelPermalink }}' /></noscript>
+ {{ partial "htmlhead.custom.html" }}
</head>
diff --git a/package-lock.json b/package-lock.json
index d57149d..ef5cd61 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "hugo-theme-massively",
- "version": "6.0.0",
+ "version": "6.1.0",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "hugo-theme-massively",
- "version": "6.0.0",
+ "version": "6.1.0",
"license": "ISC",
"devDependencies": {
"cypress": "^9.5.3",
diff --git a/package.json b/package.json
index a275111..df84bab 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "hugo-theme-massively",
- "version": "6.0.0",
+ "version": "6.1.0",
"description": "HTML5 UP theme Massively for Hugo",
"scripts": {
"cypress": "cypress open",
@@ -11,7 +11,7 @@
},
"repository": {
"type": "git",
- "url": "git+https://github.com/curttimson/hugo-theme-massively.git"
+ "url": "git+https://github.com/curtiscde/hugo-theme-massively.git"
},
"keywords": [
"hugo",
@@ -23,9 +23,9 @@
"author": "Curtis Timson",
"license": "ISC",
"bugs": {
- "url": "https://github.com/curttimson/hugo-theme-massively/issues"
+ "url": "https://github.com/curtiscde/hugo-theme-massively/issues"
},
- "homepage": "https://github.com/curttimson/hugo-theme-massively#readme",
+ "homepage": "https://github.com/curtiscde/hugo-theme-massively#readme",
"devDependencies": {
"cypress": "^9.5.3",
"start-server-and-test": "^1.14.0",