mirror of
https://github.com/thomasjsn/hugo-theme-hello-friend.git
synced 2024-11-14 12:25:07 +01:00
Add head/footer custom
This commit is contained in:
parent
1cfec04653
commit
2acd964d45
@ -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 New Issue
Block a user