Add head/footer custom
This commit is contained in:
parent
1cfec04653
commit
2acd964d45
4 changed files with 12 additions and 0 deletions
|
@ -14,3 +14,4 @@
|
|||
|
||||
<script src="{{ "assets/main.js" | absURL }}"></script>
|
||||
<script src="{{ "assets/prism.js" | absURL }}"></script>
|
||||
{{- partial "footer_custom.html" . }}
|
||||
|
|
4
layouts/partials/footer_custom.html
Normal file
4
layouts/partials/footer_custom.html
Normal file
|
@ -0,0 +1,4 @@
|
|||
<!--
|
||||
If you want to include any custom html just before </body>, put it in /layouts/partials/footer_custom.html
|
||||
Do not put anything in this file - it's only here so that hugo won't throw an error if /layouts/partials/footer_custom.html doesn't exist.
|
||||
-->
|
|
@ -45,3 +45,6 @@
|
|||
{{ if .OutputFormats.Get "json" }}
|
||||
<link href="{{ if .OutputFormats.Get "json" }}{{ "feed.json" | absURL }}{{ end }}" rel="alternate" type="application/json" title="{{ .Site.Title }}" />
|
||||
{{ end }}
|
||||
|
||||
<!-- head custom -->
|
||||
{{- partial "head_custom.html" . }}
|
4
layouts/partials/head_custom.html
Normal file
4
layouts/partials/head_custom.html
Normal file
|
@ -0,0 +1,4 @@
|
|||
<!--
|
||||
If you want to include any custom html just before </head>, put it in /layouts/partials/head_custom.html
|
||||
Do not put anything in this file - it's only here so that hugo won't throw an error if /layouts/partials/head_custom.html doesn't exist.
|
||||
-->
|
Loading…
Reference in a new issue