Skip to content

Commit

Permalink
add preconnect for goatcounter
Browse files Browse the repository at this point in the history
  • Loading branch information
HidegonSan committed Dec 1, 2023
1 parent 6ef4818 commit bf93a8c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions layouts/partials/head/goatcounter.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

{{- if (eq hugo.Environment "production") -}}

<link rel="preconnect dns-prefetch" href="//hidegon.goatcounter.com">

{{- $goatcounter_license_body := "// GoatCounter: https://www.goatcounter.com\n// This file (and *only* this file) is released under the ISC license:\n// https://opensource.org/licenses/ISC\n" -}}
{{- $goatcounter_license := $goatcounter_license_body | resources.FromString "js/goatcounter_license.js" -}}
{{- $goatcounter := (resources.Get "js/goatcounter.js") | minify -}}
Expand Down

0 comments on commit bf93a8c

Please sign in to comment.