breaking changes: 移除 cnzz 分析

feat: 導航欄可隱藏博客名字
feat: 導航欄可設置 logo closed #1104
This commit is contained in:
Jerry
2022-12-22 00:16:54 +08:00
Unverified
parent e2565a9f39
commit 0f915f47ef
8 changed files with 43 additions and 28 deletions

View File

@@ -16,9 +16,6 @@ if theme.google_analytics
gtag('js', new Date());
gtag('config', '!{theme.google_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}`)
if theme.cloudflare_analytics
script(defer data-pjax src='https://static.cloudflareinsights.com/beacon.min.js' data-cf-beacon=`{"token": "${theme.cloudflare_analytics}"}`)

View File

@@ -6,9 +6,6 @@ if theme.google_analytics
if theme.baidu_analytics
link(rel="preconnect" href="//hm.baidu.com")
if theme.cnzz_analytics
link(rel="preconnect" href="//s4.cnzz.com")
if theme.cloudflare_analytics
link(rel="preconnect" href="//static.cloudflareinsights.com")

View File

@@ -1,6 +1,10 @@
nav#nav
span#blog_name
a#site-name(href=url_for('/')) #[=config.title]
span#blog-info
a(href=url_for('/') title=config.title)
if theme.nav_info.logo
img.site-icon(src=url_for(theme.nav_info.logo))
if theme.nav_info.display_title
span.site-name=config.title
#menus
if (theme.algolia_search.enable || theme.local_search.enable)