Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6955857

Browse files
authored
Merge pull request kitian616#98 from HenryQW/dev
feat: add telegram icon
2 parents 64e2a96 + 94dc59e commit 6955857

File tree

10 files changed

+22
-1
lines changed

10 files changed

+22
-1
lines changed

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ author:
4848
linkedin : # "user_name" the last part of your profile url, e.g. https://www.linkedin.com/in/user_name/
4949
github : # "user_name" the last part of your profile url, e.g. https://github.com/user_name
5050
npm : # "user_name" the last part of your profile url, e.g. https://www.npmjs.com/~user_name
51-
51+
telegram : # "user_name" the last part of your profile url, e.g. https://t.me/user_name
5252

5353
## => GitHub Repository (if the site is hosted by GitHub)
5454
##############################

_includes/author-links.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,5 +80,13 @@
8080
</a>
8181
</li>
8282
{%- endif -%}
83+
84+
{%- if _author.telegram -%}
85+
<li title="{{ __return | replace: '[NAME]', 'telegram' }}">
86+
<a class="button button--circle telegram-button" itemprop="sameAs" href="https://t.me/{{ _author.telegram }}" target="_blank">
87+
<div class="icon">{%- include svg/icon/social/telegram.svg -%}</div>
88+
</a>
89+
</li>
90+
{%- endif -%}
8391
</ul>
8492
</div>
Lines changed: 4 additions & 0 deletions
Loading

_sass/components/_author-links.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
.npm-button {
3030
@include clickable($text-color-1, $npm-color);
3131
}
32+
.telegram-button {
33+
@include clickable($text-color-1, $telegram-color);
34+
}
3235
}
3336
}
3437
}

_sass/skins/_chocolate.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ $douban-color: #42bd56;
6363
$github-color: #000;
6464
$linkedin-color: #1074af;
6565
$npm-color: #fff;
66+
$telegram-color: #32AFED;
6667

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

_sass/skins/_dark.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ $douban-color: #42bd56;
6363
$github-color: #000;
6464
$linkedin-color: #1074af;
6565
$npm-color: #fff;
66+
$telegram-color: #32AFED;
6667

6768
// highlight colors
6869
@import "skins/highlight/tomorrow-night";

_sass/skins/_default.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ $douban-color: #42bd56;
6363
$github-color: #000;
6464
$linkedin-color: #1074af;
6565
$npm-color: #fff;
66+
$telegram-color: #32AFED;
6667

6768
// highlight colors
6869
@import "skins/highlight/tomorrow";

_sass/skins/_forest.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ $douban-color: #42bd56;
6363
$github-color: #000;
6464
$linkedin-color: #1074af;
6565
$npm-color: #fff;
66+
$telegram-color: #32AFED;
6667

6768
// highlight colors
6869
@import "skins/highlight/tomorrow";

_sass/skins/_ocean.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ $douban-color: #42bd56;
6363
$github-color: #000;
6464
$linkedin-color: #1074af;
6565
$npm-color: #fff;
66+
$telegram-color: #32AFED;
6667

6768
// highlight colors
6869
@import "skins/highlight/tomorrow-night-blue";

_sass/skins/_orange.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ $douban-color: #42bd56;
6464
$github-color: #000;
6565
$linkedin-color: #1074af;
6666
$npm-color: #fff;
67+
$telegram-color: #32AFED;
6768

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

0 commit comments

Comments
 (0)