Skip to content

Commit

Permalink
feat: Allow injection of custom code in the html head
Browse files Browse the repository at this point in the history
  • Loading branch information
coolapso committed Oct 24, 2024
1 parent 47d639d commit c66b356
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
font-size: 18px;
}
</style>
{{ if .Site.Params.analytics.code }}
{{ .Site.Params.analytics.code }}
{{ end }}
{{ if .Site.Params.analytics.code }}
{{ .Site.Params.analytics.code }}
{{ end }}

{{ if .Site.Params.customHeadCode }}
{{ .Site.Params.customHeadCode | safeHTML }}
{{ end }}

0 comments on commit c66b356

Please sign in to comment.