From 3ae14a2494a9871fcf6ae4a2416e9c16d1b86a5a Mon Sep 17 00:00:00 2001 From: Mark Goho Date: Mon, 15 Jan 2024 20:04:29 -0500 Subject: [PATCH] add analytics --- hugo/assets/styles.scss | 10 ++++++++++ hugo/layouts/partials/head.html | 10 +++++++++- hugo/layouts/partials/header.html | 1 + 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/hugo/assets/styles.scss b/hugo/assets/styles.scss index 8ed73d7..7581136 100644 --- a/hugo/assets/styles.scss +++ b/hugo/assets/styles.scss @@ -236,3 +236,13 @@ a { color: var(--text-2); } } + +.visually-hidden { + clip: rect(0 0 0 0); + clip-path: inset(50%); + height: 1px; + overflow: hidden; + position: absolute; + white-space: nowrap; + width: 1px; +} \ No newline at end of file diff --git a/hugo/layouts/partials/head.html b/hugo/layouts/partials/head.html index 6b66c5f..f95701c 100644 --- a/hugo/layouts/partials/head.html +++ b/hugo/layouts/partials/head.html @@ -1,7 +1,7 @@ {{ .Title }} - + {{ block "meta" . }} {{ partial "meta.html" . }} @@ -21,6 +21,14 @@ {{ $style := resources.Get "styles.scss" | resources.ToCSS $options | resources.Fingerprint }} + + {{ block "scripts" . }} {{ end }} diff --git a/hugo/layouts/partials/header.html b/hugo/layouts/partials/header.html index b39f6f4..70765ee 100644 --- a/hugo/layouts/partials/header.html +++ b/hugo/layouts/partials/header.html @@ -1,6 +1,7 @@