feat: 添加waline,valine 和twikoo 提供的文章閲讀數配置 close #502

improvement: 當文章頁cover 和cover 的 default_img都沒有配置時,會去讀取default_top_img的參數
improvement: 在完全沒有配置的情況下,運行時控制臺報null 的問題
This commit is contained in:
Jerry
2021-02-19 22:14:34 +08:00
Unverified
parent 0cea722da8
commit b176ff0fa7
12 changed files with 41 additions and 20 deletions

View File

@@ -1,6 +1,6 @@
if !theme.disable_top_img && page.top_img !== false
if is_post()
- var top_img = page.top_img || page.cover || page.randomcover || theme.default_top_img
- var top_img = page.top_img || page.cover || page.randomcover
else if is_page()
- var top_img = page.top_img || theme.default_top_img
else if is_tag()