Skip to content

Commit 03367ba

Browse files
authored
Update base.html
1 parent 671965a commit 03367ba

File tree

1 file changed

+20
-30
lines changed

1 file changed

+20
-30
lines changed

src/_layouts/base.html

+20-30
Original file line numberDiff line numberDiff line change
@@ -15,34 +15,24 @@
1515
<link rel="preconnect" href="https://fonts.googleapis.cn">
1616
<link rel="preconnect" href="https://fonts.gstatic.cn" crossorigin>
1717
{% endunless -%}
18-
19-
<!-- {%- if isProduction == true -%} -->
20-
<!-- <meta name="google-site-verification" content="{{ site.google_site_verification }}"> -->
21-
<script>
22-
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
23-
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
24-
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src
25-
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
26-
})(window,document,'script','dataLayer','{{ site.google_tag_manager_id }}');
27-
</script>
28-
<script>
29-
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
30-
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
31-
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
32-
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
33-
ga('create', '{{ site.google_analytics_id }}', 'auto');
34-
ga('send', 'pageview');
35-
</script>
36-
<script>
37-
var _hmt = _hmt || [];
38-
(function() {
39-
var hm = document.createElement("script");
40-
hm.src = "https://hm.baidu.com/hm.js?459029b086376519fc9bf43c184e2a4f";
41-
var s = document.getElementsByTagName("script")[0];
42-
s.parentNode.insertBefore(hm, s);
43-
})();
44-
</script>
45-
<!-- {% endif -%} -->
18+
<!-- Starting the Analysis Code -->
19+
<script>
20+
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
21+
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
22+
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src
23+
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
24+
})(window,document,'script','dataLayer','{{ site.google_tag_manager_id }}');
25+
</script>
26+
<script>
27+
var _hmt = _hmt || [];
28+
(function() {
29+
var hm = document.createElement("script");
30+
hm.src = "https://hm.baidu.com/hm.js?459029b086376519fc9bf43c184e2a4f";
31+
var s = document.getElementsByTagName("script")[0];
32+
s.parentNode.insertBefore(hm, s);
33+
})();
34+
</script>
35+
<!-- Ending the Analysis Code -->
4636

4737
{% assign desc = description | default: site.description | strip_html | strip_newlines | truncate: 160 -%}
4838
{% unless desc and desc != '' or page.url contains '/posts' or page.url contains '/community' -%}
@@ -90,14 +80,14 @@
9080

9181
<!-- {% render cookie-notice.html %}-->
9282

93-
<!-- {%- if isProduction == true -%} -->
83+
9484
<noscript>
9585
<iframe
9686
src="https://www.googletagmanager.com/ns.html?id={{ site.google_tag_manager_id }}"
9787
height="0" width="0" style="display:none;visibility:hidden">
9888
</iframe>
9989
</noscript>
100-
<!-- {% endif -%} -->
90+
10191

10292
<div id="overlay-under-drawer"></div>
10393

0 commit comments

Comments
 (0)