Add head/footer custom

This commit is contained in:
Agung Pratama 2019-03-16 23:35:06 +07:00
parent 1cfec04653
commit 2acd964d45
No known key found for this signature in database
GPG key ID: E94D07D4270AB468
4 changed files with 12 additions and 0 deletions

View file

@ -14,3 +14,4 @@
<script src="{{ "assets/main.js" | absURL }}"></script>
<script src="{{ "assets/prism.js" | absURL }}"></script>
{{- partial "footer_custom.html" . }}

View 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.
-->

View file

@ -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" . }}

View 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.
-->