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.Open_Graph_meta
- let contentType = is_post() ? 'article' : 'website'
- let metaImage = full_url_for(page.cover || theme.avatar.img)
- let metaImage = (page.cover || theme.avatar.img) ? full_url_for(page.cover || theme.avatar.img) : ''
- let fb_appId = theme.facebook_comments.app_id || ''
- let fb_admins = theme.facebook_comments.user_id || ''