From 626ae62eb03860f6160c6f0789bc415946169fed Mon Sep 17 00:00:00 2001 From: neoFelhz Date: Tue, 25 Jul 2017 13:41:32 +0800 Subject: [PATCH] feat(footer): add v2ex icon to layout --- _config.template.yml | 1 + layout/_partial/config_footer.ejs | 120 ++++++++++++++++-------------- layout/_partial/footer-left.ejs | 9 +++ 3 files changed, 73 insertions(+), 57 deletions(-) diff --git a/_config.template.yml b/_config.template.yml index fb475015c..6d8cab973 100644 --- a/_config.template.yml +++ b/_config.template.yml @@ -156,6 +156,7 @@ sns: zhihu: bilibili: telegram: + v2ex: # SNS Share Switch sns_share: diff --git a/layout/_partial/config_footer.ejs b/layout/_partial/config_footer.ejs index ac8660b66..4f1dc3149 100644 --- a/layout/_partial/config_footer.ejs +++ b/layout/_partial/config_footer.ejs @@ -1,57 +1,63 @@ - + diff --git a/layout/_partial/footer-left.ejs b/layout/_partial/footer-left.ejs index 1bc3c8533..c4a204455 100644 --- a/layout/_partial/footer-left.ejs +++ b/layout/_partial/footer-left.ejs @@ -97,4 +97,13 @@ <% } %> + + + <% if(theme.sns.v2ex) { %> + + + <% } %>