Skip to content

Commit 169d3d6

Browse files
committed
Add Google Analytics and schema.org markup.
1 parent 7b98413 commit 169d3d6

File tree

1 file changed

+41
-43
lines changed

1 file changed

+41
-43
lines changed

_layouts/default.html

Lines changed: 41 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,47 @@
4545
</style>
4646
{% endif %}
4747
{{ page | jb_picture_head }}
48+
<script src="https://code.jquery.com/jquery-3.7.1.min.js"
49+
integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo="
50+
crossorigin="anonymous"></script>
51+
<script src="/js/all.js?{{ site.data['hash'] }}"></script>
52+
{% if page.script %}
53+
<script>
54+
{{ page.script }}
55+
</script>
56+
{% endif %}
57+
<script>
58+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
59+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
60+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
61+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
62+
ga('create', 'UA-1963507-32', 'auto');
63+
ga('send', 'pageview');
64+
Cd=document;Cr="&"+Math.random();Cp="&s=1";
65+
Cd.cookie="b=b";if(Cd.cookie)Cp+="&c=1";
66+
Cp+="&t="+(new Date()).getTimezoneOffset();
67+
if(self!=top)Cp+="&f=1";
68+
if(navigator.javaEnabled())Cp+="&j=1";
69+
if(typeof(screen)!='undefined')Cp+="&w="+screen.width+"&h="+
70+
screen.height+"&d="+(screen.colorDepth?screen.colorDepth:screen.pixelDepth);
71+
</script>
72+
<script type="application/ld+json">
73+
{
74+
"@context": "http://schema.org",
75+
"@type": "Person",
76+
"name": "Yegor Bugayenko",
77+
"url": "https://www.yegor256.com",
78+
"sameAs": [
79+
"https://www.facebook.com/yegor256",
80+
"https://instagram.com/yegor256",
81+
"https://www.linkedin.com/in/yegor256",
82+
"https://twitter.com/yegor256",
83+
"https://github.com/yegor256",
84+
"https://www.pinterest.com/yegor256/",
85+
"https://www.youtube.com/c/yegor256"
86+
]
87+
}
88+
</script>
4889
</head>
4990
<body>
5091
<div class="wrapper">
@@ -217,48 +258,5 @@
217258
<img src="https://img.shields.io/github/stars/yegor256/blog.svg?style=flat-square"
218259
alt="GitHub stars"/></a>
219260
</div>
220-
<script src="https://code.jquery.com/jquery-3.7.1.min.js"
221-
integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo="
222-
crossorigin="anonymous"></script>
223-
<script src="/js/all.js?{{ site.data['hash'] }}"></script>
224-
{% if page.script %}
225-
<script>
226-
{{ page.script }}
227-
</script>
228-
{% endif %}
229-
{% if jekyll.environment == "production" %}
230-
<script>
231-
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
232-
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
233-
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
234-
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
235-
ga('create', 'UA-1963507-32', 'auto');
236-
ga('send', 'pageview');
237-
Cd=document;Cr="&"+Math.random();Cp="&s=1";
238-
Cd.cookie="b=b";if(Cd.cookie)Cp+="&c=1";
239-
Cp+="&t="+(new Date()).getTimezoneOffset();
240-
if(self!=top)Cp+="&f=1";
241-
if(navigator.javaEnabled())Cp+="&j=1";
242-
if(typeof(screen)!='undefined')Cp+="&w="+screen.width+"&h="+
243-
screen.height+"&d="+(screen.colorDepth?screen.colorDepth:screen.pixelDepth);
244-
</script>
245-
{% endif %}
246-
<script type="application/ld+json">
247-
{
248-
"@context": "http://schema.org",
249-
"@type": "Person",
250-
"name": "Yegor Bugayenko",
251-
"url": "https://www.yegor256.com",
252-
"sameAs": [
253-
"https://www.facebook.com/yegor256",
254-
"https://instagram.com/yegor256",
255-
"https://www.linkedin.com/in/yegor256",
256-
"https://twitter.com/yegor256",
257-
"https://github.com/yegor256",
258-
"https://www.pinterest.com/yegor256/",
259-
"https://www.youtube.com/c/yegor256"
260-
]
261-
}
262-
</script>
263261
</body>
264262
</html>

0 commit comments

Comments
 (0)