Skip to content

Commit

Permalink
update rules, remove clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
Duncanma committed May 11, 2024
1 parent d5971b8 commit c2d28f6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
9 changes: 1 addition & 8 deletions themes/hello-friend-ng/layouts/partials/head.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<meta charset="UTF-8">
<link href="https://www.clarity.ms" rel="preconnect" >
<link href="https://photos.duncanmackenzie.net" rel="preconnect" >
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="author"
Expand Down Expand Up @@ -81,10 +81,3 @@
{{- if templates.Exists "partials/extra-head.html" -}}
{{ partial "extra-head.html" . }}
{{- end }}
<script type="text/javascript">
(function (c, l, a, r, i, t, y) {
c[a] = c[a] || function () { (c[a].q = c[a].q || []).push(arguments) };
t = l.createElement(r); t.async = 1; t.src = "https://www.clarity.ms/tag/" + i;
y = l.getElementsByTagName(r)[0]; y.parentNode.insertBefore(t, y);
})(window, document, "clarity", "script", {{.Site.Params.Clarity }});
</script>
8 changes: 6 additions & 2 deletions themes/hello-friend-ng/layouts/partials/javascript.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@
{
"where": { "href_matches": "/*" },
"eagerness": "eager"
}
]
}],
"prerender": [
{
"where": { "href_matches": "/*" },
"eagerness": "moderate"
}]
}
</script>

Expand Down

0 comments on commit c2d28f6

Please sign in to comment.