From d6b4336e9c73afea2d7fb9ee4a73d14da4f2fa3c Mon Sep 17 00:00:00 2001 From: AOAOSTAR <86001674+aoaostar@users.noreply.github.com> Date: Fri, 15 Apr 2022 21:02:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=BA=95=E9=83=A8=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1=E4=BB=A3=E7=A0=81=20(#2)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _config.yml | 1 + layout/_partial/footer.ejs | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/_config.yml b/_config.yml index c982f3b..d9e7b4f 100644 --- a/_config.yml +++ b/_config.yml @@ -216,6 +216,7 @@ footer: since: 2020 # the starting year of your website, Can be null icp: # ICP record number of your website, Can be null upyun: # url + code: # Statistical codes of your website, Can be null # --------------------------------------------------------------------------------------- # Keep version (Please don't modify) diff --git a/layout/_partial/footer.ejs b/layout/_partial/footer.ejs index 476b75e..be95069 100644 --- a/layout/_partial/footer.ejs +++ b/layout/_partial/footer.ejs @@ -34,5 +34,10 @@ upyun 提供CDN加速/云存储服务 <% } %> + <% if (theme.footer.hasOwnProperty('code') && theme.footer.code) { %> +
+ <%- theme.footer.code %> +
+ <% } %>