mirror of
https://github.com/panr/hugo-theme-terminal.git
synced 2024-12-11 10:15:08 +03:00
partials/head: render a placeholder custom_head.html
This commit is contained in:
parent
487876daf1
commit
1cf2b933a3
3 changed files with 10 additions and 0 deletions
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" }}
|
{{ if .OutputFormats.Get "json" }}
|
||||||
<link href="{{ if .OutputFormats.Get "json" }}{{ "feed.json" | absURL }}{{ end }}" rel="alternate" type="application/json" title="{{ $.Site.Title }}" />
|
<link href="{{ if .OutputFormats.Get "json" }}{{ "feed.json" | absURL }}{{ end }}" rel="alternate" type="application/json" title="{{ $.Site.Title }}" />
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
<!-- Custom head section-->
|
||||||
|
{{ partial "custom_head.html" . }}
|
||||||
|
|
Loading…
Reference in a new issue