From 841fbb0c5ed261653214ba6846dcff4d8dcb46ee Mon Sep 17 00:00:00 2001 From: JamesYao <754433989@qq.com> Date: Thu, 30 Mar 2023 17:11:59 +0800 Subject: [PATCH 1/3] Add social config style --- _config.yml | 6 +++--- layout/includes/header/social.pug | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/_config.yml b/_config.yml index 72373bc..4012ed3 100644 --- a/_config.yml +++ b/_config.yml @@ -38,10 +38,10 @@ copy: # social settings (社交圖標設置) # formal: -# icon: link || the description +# icon: link || the description || style social: - # fab fa-github: https://github.com/xxxxx || Github - # fas fa-envelope: mailto:xxxxxx@gmail.com || Email + # fab fa-github: https://github.com/xxxxx || Github || color:#24292e + # fas fa-envelope: mailto:xxxxxx@gmail.com || Email || color:#4a7dbe # search (搜索) # see https://butterfly.js.org/posts/ceeb73f/#搜索系統 diff --git a/layout/includes/header/social.pug b/layout/includes/header/social.pug index 80adfe9..047aa73 100644 --- a/layout/includes/header/social.pug +++ b/layout/includes/header/social.pug @@ -1,4 +1,4 @@ each url, icon in theme.social a.social-icon(href=url_for(trim(url.split('||')[0])) target="_blank" title=url.split('||')[1] === undefined ? '' : trim(url.split('||')[1])) - i(class=icon) \ No newline at end of file + i(class=icon style=url_for(trim(url.split('||')[2]) === undefined ? '' : trim(url.split('||')[2]))) \ No newline at end of file From 47214b5a7c7281243f024716d3aae328562ab8b6 Mon Sep 17 00:00:00 2001 From: JamesYao <754433989@qq.com> Date: Tue, 4 Apr 2023 15:37:55 +0800 Subject: [PATCH 2/3] feat: add social icon color config --- _config.yml | 6 +++--- layout/includes/header/social.pug | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/_config.yml b/_config.yml index 4012ed3..a76bf97 100644 --- a/_config.yml +++ b/_config.yml @@ -38,10 +38,10 @@ copy: # social settings (社交圖標設置) # formal: -# icon: link || the description || style +# icon: link || the description || color social: - # fab fa-github: https://github.com/xxxxx || Github || color:#24292e - # fas fa-envelope: mailto:xxxxxx@gmail.com || Email || color:#4a7dbe + fab fa-github: https://github.com/xxxxx || Github || '#24292e' + fas fa-envelope: mailto:xxxxxx@gmail.com || Email || '#4a7dbe' # search (搜索) # see https://butterfly.js.org/posts/ceeb73f/#搜索系統 diff --git a/layout/includes/header/social.pug b/layout/includes/header/social.pug index 047aa73..b7b586e 100644 --- a/layout/includes/header/social.pug +++ b/layout/includes/header/social.pug @@ -1,4 +1,4 @@ each url, icon in theme.social a.social-icon(href=url_for(trim(url.split('||')[0])) target="_blank" title=url.split('||')[1] === undefined ? '' : trim(url.split('||')[1])) - i(class=icon style=url_for(trim(url.split('||')[2]) === undefined ? '' : trim(url.split('||')[2]))) \ No newline at end of file + i(class=icon style=url.split('||')[2] === undefined ? '' : `color: ${trim(url.split('||')[2]).replace(/[\'\"]/g, '')};`) \ No newline at end of file From 49b6c7436cfee64637a8d1f8802f30bea88e8d89 Mon Sep 17 00:00:00 2001 From: Jerry Wong Date: Sat, 8 Apr 2023 15:10:56 +0800 Subject: [PATCH 3/3] Update _config.yml --- _config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_config.yml b/_config.yml index f15f55c..57d523a 100644 --- a/_config.yml +++ b/_config.yml @@ -40,8 +40,8 @@ copy: # formal: # icon: link || the description || color social: - fab fa-github: https://github.com/xxxxx || Github || '#24292e' - fas fa-envelope: mailto:xxxxxx@gmail.com || Email || '#4a7dbe' + # fab fa-github: https://github.com/xxxxx || Github || '#24292e' + # fas fa-envelope: mailto:xxxxxx@gmail.com || Email || '#4a7dbe' # search (搜索) # see https://butterfly.js.org/posts/ceeb73f/#搜索系統