From b15ab4adb837e43409e5e3cf3a40a83ef4dbf62f Mon Sep 17 00:00:00 2001 From: Roger Gonzalez Date: Sun, 8 Jan 2023 22:12:24 -0300 Subject: Initial commit --- .../layouts/partials/google-analytics.html | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 themes/hugo-whisper-theme/layouts/partials/google-analytics.html (limited to 'themes/hugo-whisper-theme/layouts/partials/google-analytics.html') diff --git a/themes/hugo-whisper-theme/layouts/partials/google-analytics.html b/themes/hugo-whisper-theme/layouts/partials/google-analytics.html new file mode 100644 index 0000000..63c84ab --- /dev/null +++ b/themes/hugo-whisper-theme/layouts/partials/google-analytics.html @@ -0,0 +1,26 @@ +{{- if .Site.IsServer -}} + +{{ else }} + {{ $gid := (getenv "HUGO_GOOGLE_ANALYTICS_ID") }} + {{ if $gid }} + + + + {{ else }} + {{ if .Site.Params.google_analytics_id }} + + + + {{ end }} + {{ end}} +{{ end }} \ No newline at end of file -- cgit v1.2.3