Permalink
Browse files

Add a new "extra-in-head" customizable partial. (#40)

The partial is empty as it is meant as an extension point for users,
who can use it to inject arbitrary HTML into <head> without having to
maintain a fork of the theme.

Background: https://discourse.gohugo.io/t/how-to-override-css-classes-with-hugo/3033/9
  • Loading branch information...
dechamps authored and jbub committed Nov 14, 2017
1 parent 1555cbf commit 541925a8576418d47f687c46183358a47034bac2
Showing with 4 additions and 0 deletions.
  1. +3 −0 README.md
  2. 0 layouts/partials/extra-in-head.html
  3. +1 −0 layouts/partials/header.html
View
@@ -96,3 +96,6 @@ disqusShortname = "XXX"
url = "/page/about/"
weight = 4
```
You can also inject arbitrary HTML into `<head>` simply by overriding the `extra-in-head.html`
partial, which is meant for that purpose.
No changes.
@@ -17,6 +17,7 @@
{{ if .RSSLink }}
<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml">
{{ end }}
{{ partial "extra-in-head.html" . }}
</head>
<body>
{{ template "_internal/google_analytics.html" . }}

0 comments on commit 541925a

Please sign in to comment.