mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-10 21:17:07 +08:00
feat: add social icon color config
This commit is contained in:
@@ -38,10 +38,10 @@ copy:
|
|||||||
|
|
||||||
# social settings (社交圖標設置)
|
# social settings (社交圖標設置)
|
||||||
# formal:
|
# formal:
|
||||||
# icon: link || the description || style
|
# icon: link || the description || color
|
||||||
social:
|
social:
|
||||||
# fab fa-github: https://github.com/xxxxx || Github || color:#24292e
|
fab fa-github: https://github.com/xxxxx || Github || '#24292e'
|
||||||
# fas fa-envelope: mailto:xxxxxx@gmail.com || Email || color:#4a7dbe
|
fas fa-envelope: mailto:xxxxxx@gmail.com || Email || '#4a7dbe'
|
||||||
|
|
||||||
# search (搜索)
|
# search (搜索)
|
||||||
# see https://butterfly.js.org/posts/ceeb73f/#搜索系統
|
# see https://butterfly.js.org/posts/ceeb73f/#搜索系統
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
each url, icon in theme.social
|
each url, icon in theme.social
|
||||||
a.social-icon(href=url_for(trim(url.split('||')[0])) target="_blank"
|
a.social-icon(href=url_for(trim(url.split('||')[0])) target="_blank"
|
||||||
title=url.split('||')[1] === undefined ? '' : trim(url.split('||')[1]))
|
title=url.split('||')[1] === undefined ? '' : trim(url.split('||')[1]))
|
||||||
i(class=icon style=url_for(trim(url.split('||')[2]) === undefined ? '' : trim(url.split('||')[2])))
|
i(class=icon style=url.split('||')[2] === undefined ? '' : `color: ${trim(url.split('||')[2]).replace(/[\'\"]/g, '')};`)
|
||||||
Reference in New Issue
Block a user