新增底部统计代码 (#2)

This commit is contained in:
AOAOSTAR 2022-04-15 21:02:52 +08:00
parent 5a88c73d48
commit d6b4336e9c
2 changed files with 6 additions and 0 deletions

View File

@ -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)

View File

@ -34,5 +34,10 @@
<img src="/images/upyun.png" alt="upyun" srcset="" height="24" style="position:relative; top:6px">
提供CDN加速/云存储服务</a></div>
<% } %>
<% if (theme.footer.hasOwnProperty('code') && theme.footer.code) { %>
<div class="code-info info-item">
<%- theme.footer.code %>
</div>
<% } %>
</div>
</footer>