Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(sns): add bilibili SNS, deleted extra information #104

Merged
merged 11 commits into from
Jan 5, 2017
5 changes: 3 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,16 @@ fonts: Roboto, "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "
# SNS Menu
sns:
email: youremail@email.com
twitter: "https://twitter.com/twitter"
facebook: "https://www.facebook.com/facebook"
googleplus: "https://www.google.com/"
twitter:
googleplus:
weibo:
instagram:
tumblr:
github:
linkedin:
zhihu:
bilibili:

# SNS Share Switch
sns_share:
Expand Down
26 changes: 17 additions & 9 deletions layout/_partial/footer-left.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -2,72 +2,80 @@
<!-- Twitter -->
<% if(theme.sns.twitter == undefined){ %>
<% } else{ %>
<a href="<%= theme.sns.twitter %>" target="view_window"><button class="mdl-mini-footer--social-btn social-btn" style="background-image: url(<%= theme.img.footerico %>twitter.png);">
<a href="<%= theme.sns.twitter %>" target="_blank"><button class="mdl-mini-footer--social-btn social-btn" style="background-image: url(<%= theme.img.footerico %>twitter.png);">
<span class="visuallyhidden">Twitter</span>
</button></a>
<% } %>

<!-- Facebook -->
<% if(theme.sns.facebook == undefined){ %>
<% }else{ %>
<a href="<%= theme.sns.facebook %>" target="view_window"><button class="mdl-mini-footer--social-btn social-btn" style="background-image: url(<%= theme.img.footerico %>facebook.png);">
<a href="<%= theme.sns.facebook %>" target="_blank"><button class="mdl-mini-footer--social-btn social-btn" style="background-image: url(<%= theme.img.footerico %>facebook.png);">
<span class="visuallyhidden">Facebook</span>
</button></a>
<% } %>

<!-- Google + -->
<% if(theme.sns.googleplus == undefined){ %>
<% }else{ %>
<a href="<%= theme.sns.googleplus %>" target="view_window"><button class="mdl-mini-footer--social-btn social-btn" style="background-image: url(<%= theme.img.footerico %>gplus.png);">
<a href="<%= theme.sns.googleplus %>" target="_blank"><button class="mdl-mini-footer--social-btn social-btn" style="background-image: url(<%= theme.img.footerico %>gplus.png);">
<span class="visuallyhidden">Google Plus</span>
</button></a>
<% } %>

<!-- Weibo -->
<% if(theme.sns.weibo == undefined){ %>
<% }else{ %>
<a href="<%= theme.sns.weibo %>" target="view_window"><button class="mdl-mini-footer--social-btn social-btn" style="background-image: url(<%= theme.img.footerico %>weibo.png);">
<a href="<%= theme.sns.weibo %>" target="_blank"><button class="mdl-mini-footer--social-btn social-btn" style="background-image: url(<%= theme.img.footerico %>weibo.png);">
<span class="visuallyhidden">Weibo</span>
</button></a>
<% } %>

<!-- Instagram -->
<% if(theme.sns.instagram == undefined){ %>
<% }else{ %>
<a href="<%= theme.sns.instagram %>" target="view_window"><button class="mdl-mini-footer--social-btn social-btn" style="background-image: url(<%= theme.img.footerico %>instagram.png);">
<a href="<%= theme.sns.instagram %>" target="_blank"><button class="mdl-mini-footer--social-btn social-btn" style="background-image: url(<%= theme.img.footerico %>instagram.png);">
<span class="visuallyhidden">Instagram</span>
</button></a>
<% } %>

<!-- Tumblr -->
<% if(theme.sns.tumblr == undefined){ %>
<% }else{ %>
<a href="<%= theme.sns.tumblr %>" target="view_window"><button class="mdl-mini-footer--social-btn social-btn" style="background-image: url(<%= theme.img.footerico %>tumblr.png);">
<a href="<%= theme.sns.tumblr %>" target="_blank"><button class="mdl-mini-footer--social-btn social-btn" style="background-image: url(<%= theme.img.footerico %>tumblr.png);">
<span class="visuallyhidden">Tumblr</span>
</button></a>
<% } %>

<!-- Github -->
<% if(theme.sns.github == undefined){ %>
<% }else{ %>
<a href="<%= theme.sns.github %>" target="view_window"><button class="mdl-mini-footer--social-btn social-btn" style="background-image: url(<%= theme.img.footerico %>github.png);">
<a href="<%= theme.sns.github %>" target="_blank"><button class="mdl-mini-footer--social-btn social-btn" style="background-image: url(<%= theme.img.footerico %>github.png);">
<span class="visuallyhidden">Github</span>
</button></a>
<% } %>

<!-- LinkedIn -->
<% if(theme.sns.linkedin == undefined){ %>
<% }else{ %>
<a href="<%= theme.sns.linkedin %>" target="view_window"><button class="mdl-mini-footer--social-btn social-btn" style="background-image: url(<%= theme.img.footerico %>linkedin.png);">
<a href="<%= theme.sns.linkedin %>" target="_blank"><button class="mdl-mini-footer--social-btn social-btn" style="background-image: url(<%= theme.img.footerico %>linkedin.png);">
<span class="visuallyhidden">LinkedIn</span>
</button></a>
<% } %>

<!-- Zhihu -->
<% if(theme.sns.zhihu == undefined){ %>
<% }else{ %>
<a href="<%= theme.sns.zhihu %>" target="view_window"><button class="mdl-mini-footer--social-btn social-btn" style="background-image: url(<%= theme.img.footerico %>zhihu.png);">
<a href="<%= theme.sns.zhihu %>" target="_blank"><button class="mdl-mini-footer--social-btn social-btn" style="background-image: url(<%= theme.img.footerico %>zhihu.png);">
<span class="visuallyhidden">Zhihu</span>
</button></a>
<% } %>

<!-- Bilibili -->
<% if(theme.sns.bilibili == undefined){ %>
<% }else{ %>
<a href="<%= theme.sns.bilibili %>" target="_blank"><button class="mdl-mini-footer--social-btn social-btn" style="background-image: url(<%= theme.img.footerico %>bilibili.png);">
<span class="visuallyhidden">Bilibili</span>
</button></a>
<% } %>
</div>
Binary file added source/img/footer/footer_ico-bilibili.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.