Skip to content

Commit 1e911c6

Browse files
authored
feat: allows for a custom head partial (#21)
1 parent 88c6349 commit 1e911c6

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

layouts/partials/head.html

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,14 @@
2828
{{ partialCached "head/css.html" . -}}
2929
{{- partialCached "fonts.html" . -}}
3030
{{- partialCached "head/js.html" . -}}
31-
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
32-
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
33-
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
34-
<link rel="manifest" href="/site.webmanifest">
31+
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"/>
32+
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"/>
33+
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"/>
34+
<link rel="manifest" href="/site.webmanifest"/>
3535
<!-- https://gohugo.io/templates/rss/#include-feed-reference -->
3636
{{- with .OutputFormats.Get "rss" }}
3737
{{- printf `<link rel=%q type=%q href=%q title=%q>` .Rel .MediaType.Type .Permalink site.Title | safeHTML -}}
38-
{{- end -}}{{- /* Trim EOF */ -}}
38+
{{- end -}}
39+
<!-- Add your custom headers here -->
40+
{{- partial "head-custom.html" . -}}
41+
{{- /* Trim EOF */ -}}

0 commit comments

Comments
 (0)