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 telegram to sns_footer & sns_share #112

Merged
merged 3 commits into from
Jan 11, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,16 @@ fonts: Roboto, "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "
sns:
email: [email protected]
facebook: "https://www.facebook.com/facebook"
twitter:
googleplus:
twitter:
googleplus:
weibo:
instagram:
tumblr:
github:
linkedin:
zhihu:
bilibili:
telegram:

# SNS Share Switch
sns_share:
Expand Down
1 change: 1 addition & 0 deletions languages/ar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ share:
comment_rss: "تعليقات RSS"
toTwitter: "شارك على Twitter"
toLinkedIn: "شارك على LinkedIn"
toTelegram: "شارك على Telegram"
toGplus: "شارك على Google+"
toWeibo: "شارك على Weibo"
title:
Expand Down
1 change: 1 addition & 0 deletions languages/de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ share:
comment_rss: "Kommentare als RSS"
toTwitter: "Auf Twitter teilen"
toLinkedIn: "Auf LinkedIn teilen"
toTelegram: "Auf Telegram teilen"
toGplus: "Auf Google+ teilen"
toWeibo: "Auf Weibo teilen"
title:
Expand Down
1 change: 1 addition & 0 deletions languages/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ share:
toTwitter: "Share to Twitter"
toFacebook: "Share to Facebook"
toLinkedIn: "Share to LinkedIn"
toTelegram: "Share to Telegram"
toGplus: "Share to Google+"
toWeibo: "Share to Weibo"
toQQ: "Share to QQ"
Expand Down
1 change: 1 addition & 0 deletions languages/es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ share:
comment_rss: "Comentario RSS"
toTwitter: "Compartir en Twitter"
toLinkedIn: "Compartir en LinkedIn"
toTelegram: "Compartir en Telegram"
toGplus: "Compartir en Google+"
toWeibo: "Compartir en Weibo"
title:
Expand Down
1 change: 1 addition & 0 deletions languages/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ share:
comment_rss: "Flux RSS commentaires"
toTwitter: "Partager sur Twitter"
toLinkedIn: "Partager sur LinkedIn"
toTelegram: "Partager sur Telegram"
toGplus: "Partager sur Google+"
toWeibo: "Partager sur Weibo"
title:
Expand Down
1 change: 1 addition & 0 deletions languages/ja.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ share:
comment_rss: "論評 RSS"
toTwitter: "Twitter での共有"
toLinkedIn: "LinkedIn での共有"
toTelegram: "Telegram での共有"
toGplus: "Google+ での共有"
toWeibo: "Weibo での共有"
title:
Expand Down
1 change: 1 addition & 0 deletions languages/ms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ share:
comment_rss: "RSS Ulasan"
toTwitter: "Kongsi ke Twitter"
toLinkedIn: "Kongsi ke LinkedIn"
toTelegram: "Kongsi ke Telegram"
toGplus: "Kongsi ke Google+"
toWeibo: "Kongsi ke Weibo"
title:
Expand Down
1 change: 1 addition & 0 deletions languages/zh-CN.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ share:
toTwitter: "分享到 Twitter"
toFacebook: "分享到 Facebook"
toLinkedIn: "分享到 LinkedIn"
toTelegram: "分享到 Telegram"
toGplus: "分享到 Google+"
toWeibo: "分享到微博"
toQQ: "分享到 QQ"
Expand Down
1 change: 1 addition & 0 deletions languages/zh-TW.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ share:
toTwitter: "分享到 Twitter"
toFacebook: "分享到 Facebook"
toLinkedIn: "分享到 LinkedIn"
toTelegram: "分享到 Telegram"
toGplus: "分享到 Google+"
toWeibo: "分享到微博"
toQQ: "分享到 QQ"
Expand Down
1 change: 0 additions & 1 deletion layout/_partial/blog_info.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@
</li>
</a>
<% } %>

</ul>
</div>
</div>
8 changes: 8 additions & 0 deletions layout/_partial/footer-left.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,12 @@
<span class="visuallyhidden">Bilibili</span>
</button></a>
<% } %>

<!-- Telegram -->
<% if(theme.sns.telegram == undefined){ %>
<% }else{ %>
<a href="<%= theme.sns.telegram %>" target="view_window"><button class="mdl-mini-footer--social-btn social-btn" style="background-image: url(<%= theme.img.footerico %>telegram.png);">
<span class="visuallyhidden">Telegram</span>
</button></a>
<% } %>
</div>
8 changes: 8 additions & 0 deletions layout/_partial/isolate-sns_list.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,12 @@
<i class="fa fa-linkedin fa-lg" aria-hidden="true"></i>
</a>
<% } %>

<!-- Telegram -->
<% if(theme.sns.telegram == undefined){ %>
<% }else{ %>
<a href="<%= theme.sns.telegram %>" target="view_window">
<i class="fa fa-telegram fa-lg" aria-hidden="true"></i>
</a>
<% } %>
</div>
2 changes: 1 addition & 1 deletion layout/_partial/post-info-share.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@

<!-- Share Telegram -->
<% if(theme.sns_share.telegram == true){ %>
<a class="post_share-link" href="https://telegram.me/share/url?url=<%- config.url + url_for(path) %>&text=<%= page.title %>" target="_blank">
<a class="post_share-link" href="https://telegram.me/share/url?url=<%- config.url + config.root + url_for(path) %>&text=<%= page.title %>" target="_blank">
<li class="mdl-menu__item">
<%= __('share.toTelegram') %>
</li>
Expand Down
7 changes: 4 additions & 3 deletions layout/_widget/page-gallery.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<body>
<!-- Wrapper -->
<div id="wrapper">

<!-- Header -->
<header id="header">
<h1>
Expand Down Expand Up @@ -32,7 +32,7 @@
<% } %>
<% } %>
</div>

<!-- Footer -->
<!--
<footer id="footer" class="panel">
Expand All @@ -51,6 +51,7 @@
<li><a href="#" class="icon fa-github"><span class="label">GitHub</span></a></li>
<li><a href="#" class="icon fa-dribbble"><span class="label">Dribbble</span></a></li>
<li><a href="#" class="icon fa-linkedin"><span class="label">LinkedIn</span></a></li>
<li><a href="#" class="icon fa-telegram"><span class="label">Telegram</span></a></li>
</ul>
</section>
<p class="copyright">
Expand Down Expand Up @@ -89,4 +90,4 @@
<%- js("js/gallery/skel.min") %>
<%- js("js/gallery/util.min") %>
<%- js("js/gallery/main.min") %>
</body>
</body>
16 changes: 11 additions & 5 deletions source/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1645,7 +1645,7 @@ a {

@media screen and (min-width: 1183px){
#scheme-Isolation .header-title{

}
}

Expand Down Expand Up @@ -1683,16 +1683,16 @@ a {
padding-top: 24px;
border-top: 1px solid #c7ced1;
}

#scheme-Isolation .header-nav span{
margin-right: 8px;
margin-left: 8px;
}

#scheme-Isolation .header-nav span:first-child{
margin-left: 0;
}

#scheme-Isolation .header-nav span:last-child{
margin-right: 0;
}
Expand Down Expand Up @@ -3376,6 +3376,9 @@ a {
.fa-linkedin-square:before {
content: "\f08c"
}
.fa-telegram-square:before {
content: "\f2c6"
}
.fa-thumb-tack:before {
content: "\f08d"
}
Expand Down Expand Up @@ -3589,6 +3592,9 @@ a {
.fa-linkedin:before {
content: "\f0e1"
}
.fa-telegram:before {
content: "\f2c6"
}
.fa-rotate-left:before,
.fa-undo:before {
content: "\f0e2"
Expand Down Expand Up @@ -4868,4 +4874,4 @@ a {
}
.fa-percent:before {
content: "\f295"
}
}
Binary file added source/img/footer/footer_ico-telegram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.