Skip to content

Commit

Permalink
feat: support user-supplied <head> html
Browse files Browse the repository at this point in the history
If theme user creates a "custom-head.html" partial, it will be included
at the end of the <head> section.
  • Loading branch information
jannes committed Oct 10, 2024
1 parent 5c7b6ab commit 4b14884
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,8 @@
{{ template "_internal/google_analytics.html" . }}
{{- end -}}

{{/* Extend head with user supplied partial */}}
{{ if templates.Exists "partials/custom-head.html" }}
{{ partial "custom-head.html" . }}
{{ end }}
</head>

0 comments on commit 4b14884

Please sign in to comment.