mirror of
https://github.com/thomasjsn/hugo-theme-hello-friend.git
synced 2024-11-25 09:15:07 +01:00
Merge pull request #43 from bangau1/blog.agung.io
Add head and footer custom partial
This commit is contained in:
commit
1306fcbcaf
4
layouts/partials/extended_footer.html
Normal file
4
layouts/partials/extended_footer.html
Normal file
@ -0,0 +1,4 @@
|
||||
<!--
|
||||
If you want to include any custom html just before </body>, put it in /layouts/partials/extended_footer.html
|
||||
Do not put anything in this file - it's only here so that hugo won't throw an error if /layouts/partials/extended_footer.html doesn't exist.
|
||||
-->
|
4
layouts/partials/extended_head.html
Normal file
4
layouts/partials/extended_head.html
Normal file
@ -0,0 +1,4 @@
|
||||
<!--
|
||||
If you want to include any custom html just before </head>, put it in /layouts/partials/extended_head.html
|
||||
Do not put anything in this file - it's only here so that hugo won't throw an error if /layouts/partials/extended_head.html doesn't exist.
|
||||
-->
|
@ -14,3 +14,4 @@
|
||||
|
||||
<script src="{{ "assets/main.js" | absURL }}"></script>
|
||||
<script src="{{ "assets/prism.js" | absURL }}"></script>
|
||||
{{- partial "extended_footer.html" . }}
|
||||
|
@ -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 "extended_head.html" . }}
|
Loading…
Reference in New Issue
Block a user