feat: 新增 Microsoft Clarity

feat: 新增 Cloudflare Analytics
feat: aside 個人資料widget可關閉button
fix: 修復medium zoom 報錯的 bugs
This commit is contained in:
Jerry committed 2020-12-25 16:52:49 +08:00
1 parent d5d5681981
commit 80c03b15b1
7 files changed
+31 -3

No files matched your search

+9
View File
@@ -405,6 +405,14 @@ tencent_analytics:
# https://www.umeng.com/ # https://www.umeng.com/
cnzz_analytics: cnzz_analytics:
# Cloudflare Analytics
# https://www.cloudflare.com/zh-tw/web-analytics/
cloudflare_analytics:
# Microsoft Clarity
# https://clarity.microsoft.com/
microsoft_clarity:
# Advertisement # Advertisement
# -------------------------------------- # --------------------------------------
@@ -619,6 +627,7 @@ aside:
enable: true enable: true
description: description:
button: button:
enable: true
icon: fab fa-github icon: fab fa-github
text: Follow Me text: Follow Me
link: https://github.com/xxxxxx link: https://github.com/xxxxxx
+11
View File
@@ -30,3 +30,14 @@ if theme.tencent_analytics
if theme.cnzz_analytics if theme.cnzz_analytics
script(async data-pjax src=`https://s4.cnzz.com/z_stat.php?id=${theme.cnzz_analytics}&web_id=${theme.cnzz_analytics}`) script(async data-pjax src=`https://s4.cnzz.com/z_stat.php?id=${theme.cnzz_analytics}&web_id=${theme.cnzz_analytics}`)
if theme.cloudflare_analytics
script(defer data-pjax src='https://static.cloudflareinsights.com/beacon.min.js' data-cf-beacon=`{"token": "${theme.cloudflare_analytics}"}`)
if theme.microsoft_clarity
script.
(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", "!{theme.microsoft_clarity}");
+6
View File
@@ -12,6 +12,12 @@ if theme.tencent_analytics
if theme.cnzz_analytics if theme.cnzz_analytics
link(rel="preconnect" href="//s4.cnzz.com") link(rel="preconnect" href="//s4.cnzz.com")
if theme.cloudflare_analytics
link(rel="preconnect" href="//static.cloudflareinsights.com")
if theme.microsoft_clarity
link(rel="preconnect" href="//www.clarity.ms")
if theme.blog_title_font && theme.blog_title_font.font_link && theme.blog_title_font.font_link.indexOf('//fonts.googleapis.com') != -1 if theme.blog_title_font && theme.blog_title_font.font_link && theme.blog_title_font.font_link.indexOf('//fonts.googleapis.com') != -1
link(rel="preconnect" href="//fonts.googleapis.com" crossorigin='') link(rel="preconnect" href="//fonts.googleapis.com" crossorigin='')
Loaded 3 of 7 files, more files were not shown because too many files have changed in this diff. Show more