partials/head: render a placeholder custom_head.html

This commit is contained in:
Wael M. Nasreddine 2019-02-26 00:35:20 -08:00
parent 487876daf1
commit 1cf2b933a3
No known key found for this signature in database
GPG Key ID: FD437548E0BF0F5F
3 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,3 @@
<script type="text/javascript">
console.log("Custom Head is on!");
</script>

View File

@ -0,0 +1,4 @@
<!--
To add custom head section, please create `layouts/partials/custom_head.html` in your
Hugo directory.
-->

View File

@ -50,3 +50,6 @@
{{ if .OutputFormats.Get "json" }}
<link href="{{ if .OutputFormats.Get "json" }}{{ "feed.json" | absURL }}{{ end }}" rel="alternate" type="application/json" title="{{ $.Site.Title }}" />
{{ end }}
<!-- Custom head section-->
{{ partial "custom_head.html" . }}