partials/head: render a placeholder custom_head.html
This commit is contained in:
parent
487876daf1
commit
1cf2b933a3
3
exampleSite/layouts/partials/custom_head.html
Normal file
3
exampleSite/layouts/partials/custom_head.html
Normal file
@ -0,0 +1,3 @@
|
||||
<script type="text/javascript">
|
||||
console.log("Custom Head is on!");
|
||||
</script>
|
4
layouts/partials/custom_head.html
Normal file
4
layouts/partials/custom_head.html
Normal file
@ -0,0 +1,4 @@
|
||||
<!--
|
||||
To add custom head section, please create `layouts/partials/custom_head.html` in your
|
||||
Hugo directory.
|
||||
-->
|
@ -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" . }}
|
||||
|
Loading…
Reference in New Issue
Block a user