mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-10 21:17:07 +08:00
feature: default_cover 可配置顏色 fix: 修復使用本地搜索時,輸入特殊符號沒有顯示結果的 bug closed #1110 fix: 修復 頂部圖和 footer 配置帶有/的顏色參數時,無法顯示顏色的 bug improvement: 鼠標移動到分頁時,文章分頁按鈕增加説明文字 improvement: 文章頁的頂部圖顯示次序為 top_img > cover > default_top_img improvement: canonical 的鏈接根據配置生成 #1111
15 lines
488 B
Plaintext
15 lines
488 B
Plaintext
if theme.Open_Graph_meta.enable
|
|
-
|
|
const coverVal = page.cover_type === 'img' ? page.cover : theme.avatar.img
|
|
let ogOption = Object.assign({
|
|
type: is_post() ? 'article' : 'website',
|
|
image: coverVal ? full_url_for(coverVal) : '',
|
|
fb_admins: theme.facebook_comments.user_id || '',
|
|
fb_app_id: theme.facebook_comments.app_id || '',
|
|
}, theme.Open_Graph_meta.option)
|
|
-
|
|
!= open_graph(ogOption)
|
|
else
|
|
meta(name="description" content=page_description())
|
|
|