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

github.com/themefisher/infinity-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMehedi Sharif Titas <mehedishariftitas@gmail.com>2020-03-30 00:15:11 +0300
committerGitHub <noreply@github.com>2020-03-30 00:15:11 +0300
commita7934a337abdaf59361ede7886b3bd0369499cc6 (patch)
tree17f9ae4f60683b8eaa78c294fadd333df9e5cd03
parent8230b60d30b7d994fe0e00463297c48ba3da2956 (diff)
parent02a010f20ac95ddf3e2c55e130478710c66bb5df (diff)
Merge pull request #15 from robsonsobral/master
Add `params.customHead` config
-rw-r--r--exampleSite/config.toml3
-rw-r--r--layouts/partials/header.html2
2 files changed, 5 insertions, 0 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 7d88f15..b83c95d 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -5,6 +5,9 @@ theme = "infinity-hugo"
removePathAccents = true
[params]
+# HTML before the closing </head>
+customHead = ""
+
# Navigation
[params.navigation]
logo = "images/logo.png"
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index c0d3dda..4bb8a24 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -18,6 +18,8 @@
<link rel="stylesheet" href="{{ `css/style.css` | absURL }}">
{{"<!-- Responsive Stylesheet -->" | safeHTML }}
<link rel="stylesheet" href="{{ `css/responsive.css` | absURL }}">
+
+ {{ $.Site.Params.customHead | safeHTML }}
</head>
<body id="body"> \ No newline at end of file