From 12a7328f3f1e113f5ee864dbf4a26116d486ded7 Mon Sep 17 00:00:00 2001 From: Mimi <1119186082@qq.com> Date: Thu, 24 Dec 2020 11:22:24 +0800 Subject: [PATCH] Support Cloudflare Web Analytics --- .github/workflows/stale.yml | 6 +----- _config.yml | 3 +++ layout/_third-party/analytics/cloudflare.njk | 3 +++ layout/_third-party/analytics/index.njk | 1 + 4 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 layout/_third-party/analytics/cloudflare.njk diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index fd01689..84c0831 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -15,8 +15,4 @@ jobs: This issue has been automatically marked as stale because lack of recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You can also use our [support channels](https://github.com/next-theme/hexo-theme-next#feedback) to get help with the project. - exempt-issue-labels: - - Bug - - Feature Request - - Discussion - - Help Wanted + exempt-issue-labels: Bug,Feature Request,Discussion,Help Wanted diff --git a/_config.yml b/_config.yml index cd71df2..e251ecc 100644 --- a/_config.yml +++ b/_config.yml @@ -670,6 +670,9 @@ baidu_analytics: # # Growingio Analytics growingio_analytics: # +# Cloudflare Web Analytics +cloudflare_analytics: + # Show number of visitors of each article. # You can visit https://www.leancloud.cn to get AppID and AppKey. leancloud_visitors: diff --git a/layout/_third-party/analytics/cloudflare.njk b/layout/_third-party/analytics/cloudflare.njk new file mode 100644 index 0000000..0efe631 --- /dev/null +++ b/layout/_third-party/analytics/cloudflare.njk @@ -0,0 +1,3 @@ +{%- if theme.cloudflare_analytics %} + +{%- endif %} diff --git a/layout/_third-party/analytics/index.njk b/layout/_third-party/analytics/index.njk index 0e8ab1f..14e77e0 100644 --- a/layout/_third-party/analytics/index.njk +++ b/layout/_third-party/analytics/index.njk @@ -1,3 +1,4 @@ {%- include 'google-analytics.njk' -%} {%- include 'baidu-analytics.njk' -%} {%- include 'growingio.njk' -%} +{%- include 'cloudflare.njk' -%}