diff --git a/_config.yml b/_config.yml index f9764fc..75da10b 100755 --- a/_config.yml +++ b/_config.yml @@ -31,20 +31,13 @@ materialx: widgets_about: title: motto: 永远不要忘了自己是谁,因为这个世界就不会。 + social: true # 网易云音乐歌单id widgets_musicid: # 侧边栏的友链 widgets_links: - name: xaoxuu url: https://xaoxuu.com - # 右边的联系信息小窗口 - widgets_contacts: - - name: GitHub - desc: xaoxuu - url: https://github.com/xaoxuu - - name: 10086 - desc: 测试打电话 - url: tel:10086 # 页脚 footer_social: - slug: envelope diff --git a/layout/_widget/about.ejs b/layout/_widget/about.ejs index 3d263e4..400ff7f 100755 --- a/layout/_widget/about.ejs +++ b/layout/_widget/about.ejs @@ -17,14 +17,17 @@ <% } %> -
- <% (config.materialx && config.materialx.footer_social && (config.materialx.footer_social||[]) || (theme.materialx.footer_social||[])).forEach(function(value){ %> - <% if (value.url && value.slug) { %> - - - - <%}%> - <%})%> -
+ <% if (config.materialx && config.materialx.widgets_about.social){ %> +
+ <% (config.materialx && config.materialx.footer_social && (config.materialx.footer_social||[]) || (theme.materialx.footer_social||[])).forEach(function(value){ %> + <% if (value.url && value.slug) { %> + + + + <%}%> + <%})%> +
+ <% } %> +