Skip to content

Commit

Permalink
Merge pull request kitian616#98 from HenryQW/dev
Browse files Browse the repository at this point in the history
feat: add telegram icon
  • Loading branch information
kitian616 authored Oct 2, 2018
2 parents 64e2a96 + 94dc59e commit 6955857
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ author:
linkedin : # "user_name" the last part of your profile url, e.g. https://www.linkedin.com/in/user_name/
github : # "user_name" the last part of your profile url, e.g. https://github.com/user_name
npm : # "user_name" the last part of your profile url, e.g. https://www.npmjs.com/~user_name

telegram : # "user_name" the last part of your profile url, e.g. https://t.me/user_name

## => GitHub Repository (if the site is hosted by GitHub)
##############################
Expand Down
8 changes: 8 additions & 0 deletions _includes/author-links.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,13 @@
</a>
</li>
{%- endif -%}

{%- if _author.telegram -%}
<li title="{{ __return | replace: '[NAME]', 'telegram' }}">
<a class="button button--circle telegram-button" itemprop="sameAs" href="https://t.me/{{ _author.telegram }}" target="_blank">
<div class="icon">{%- include svg/icon/social/telegram.svg -%}</div>
</a>
</li>
{%- endif -%}
</ul>
</div>
4 changes: 4 additions & 0 deletions _includes/svg/icon/social/telegram.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions _sass/components/_author-links.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
.npm-button {
@include clickable($text-color-1, $npm-color);
}
.telegram-button {
@include clickable($text-color-1, $telegram-color);
}
}
}
}
1 change: 1 addition & 0 deletions _sass/skins/_chocolate.scss
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ $douban-color: #42bd56;
$github-color: #000;
$linkedin-color: #1074af;
$npm-color: #fff;
$telegram-color: #32AFED;

// highlight colors
@import "skins/highlight/tomorrow-night-eighties";
1 change: 1 addition & 0 deletions _sass/skins/_dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ $douban-color: #42bd56;
$github-color: #000;
$linkedin-color: #1074af;
$npm-color: #fff;
$telegram-color: #32AFED;

// highlight colors
@import "skins/highlight/tomorrow-night";
1 change: 1 addition & 0 deletions _sass/skins/_default.scss
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ $douban-color: #42bd56;
$github-color: #000;
$linkedin-color: #1074af;
$npm-color: #fff;
$telegram-color: #32AFED;

// highlight colors
@import "skins/highlight/tomorrow";
1 change: 1 addition & 0 deletions _sass/skins/_forest.scss
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ $douban-color: #42bd56;
$github-color: #000;
$linkedin-color: #1074af;
$npm-color: #fff;
$telegram-color: #32AFED;

// highlight colors
@import "skins/highlight/tomorrow";
1 change: 1 addition & 0 deletions _sass/skins/_ocean.scss
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ $douban-color: #42bd56;
$github-color: #000;
$linkedin-color: #1074af;
$npm-color: #fff;
$telegram-color: #32AFED;

// highlight colors
@import "skins/highlight/tomorrow-night-blue";
1 change: 1 addition & 0 deletions _sass/skins/_orange.scss
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ $douban-color: #42bd56;
$github-color: #000;
$linkedin-color: #1074af;
$npm-color: #fff;
$telegram-color: #32AFED;

// highlight colors
@import "skins/highlight/tomorrow-night-eighties";

0 comments on commit 6955857

Please sign in to comment.