Skip to content

Commit 44e1828

Browse files
Change the tag location
1 parent ea32057 commit 44e1828

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

themes/hugo-theme-console/layouts/_default/baseof.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@
55
<meta http-equiv="X-UA-Compatible" content="IE=edge">
66
<title>{{ .Site.Title }}{{ $url := urls.Parse .Page.Permalink }}{{ $url.Path }}</title>
77
{{ with .Site.Params.description }}<meta name="description" content="{{ . }}">{{ end }}
8+
9+
<script type="text/javascript">
10+
(function(c,l,a,r,i,t,y){
11+
c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
12+
t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;
13+
y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);
14+
})(window, document, "clarity", "script", "i5o6hkvds9");
15+
</script>
16+
817
<meta name="viewport" content="width=device-width, initial-scale=1">
918
<meta name="robots" content="all,follow">
1019
<meta name="googlebot" content="index,follow,snippet,archive">

themes/hugo-theme-console/layouts/index.html

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
{{ define "main" }}
22

3-
<script type="text/javascript">
4-
(function(c,l,a,r,i,t,y){
5-
c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
6-
t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;
7-
y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);
8-
})(window, document, "clarity", "script", "i5o6hkvds9");
9-
</script>
3+
104

115
<h1>Hello World!</h1>
126

0 commit comments

Comments
 (0)