Skip to content

Commit

Permalink
Add npm icon
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryQW committed Aug 16, 2018
1 parent 5056c80 commit 02182f1
Show file tree
Hide file tree
Showing 11 changed files with 28 additions and 1 deletion.
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ author:
googleplus: # "user_id" the last part of your profile url, e.g. https://plus.google.com/u/0/user_id
weibo : # "user_id" the last part of your profile url, e.g. https://www.weibo.com/user_id/profile?...
douban : # "user_name" the last part of your profile url, e.g. https://www.douban.com/people/user_name/
npm : # "user_name" the last part of your profile url, e.g. https://www.npmjs.com/~user_name


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

{%- if _author.npm -%}
<li title="{{ __return | replace: '[NAME]', 'npm' }}">
<a class="button button--circle npm-button" itemprop="sameAs" href="https://www.npmjs.com/~{{ _author.npm }}" target="_blank">
<div class="icon">{%- include svg/icon/social/npm.svg -%}</div>
</a>
</li>
{%- endif -%}
</ul>
</div>
9 changes: 9 additions & 0 deletions _includes/svg/icon/social/npm.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 @@ -25,6 +25,9 @@
}
.douban-button {
@include clickable($text-color-1, $douban-color);
}
.npm-button {
@include clickable($text-color-1, $npm-color);
}
}
}
Expand Down
1 change: 1 addition & 0 deletions _sass/skins/_chocolate.scss
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ $twitter-color: #1da1f2;
$douban-color: #42bd56;
$github-color: #000;
$linkedin-color: #1074af;
$npm-color: #fff;

// 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 @@ -62,6 +62,7 @@ $twitter-color: #1da1f2;
$douban-color: #42bd56;
$github-color: #000;
$linkedin-color: #1074af;
$npm-color: #fff;

// 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 @@ -62,6 +62,7 @@ $twitter-color: #1da1f2;
$douban-color: #42bd56;
$github-color: #000;
$linkedin-color: #1074af;
$npm-color: #fff;

// 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 @@ -62,6 +62,7 @@ $twitter-color: #1da1f2;
$douban-color: #42bd56;
$github-color: #000;
$linkedin-color: #1074af;
$npm-color: #fff;

// 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 @@ -62,6 +62,7 @@ $twitter-color: #1da1f2;
$douban-color: #42bd56;
$github-color: #000;
$linkedin-color: #1074af;
$npm-color: #fff;

// 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 @@ -63,6 +63,7 @@ $twitter-color: #1da1f2;
$douban-color: #42bd56;
$github-color: #000;
$linkedin-color: #1074af;
$npm-color: #fff;

// highlight colors
@import 'skins/highlight/tomorrow-night-eighties';
3 changes: 2 additions & 1 deletion docs/_data/authors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ Tian Qi:
linkedin: # your Linkedin username
googleplus: 101827554735084402671 # your Google+ username
weibo: 234695683 # your Weibo username
douban: # your Douban username
douban: # your Douban username
npm: # your npm username

0 comments on commit 02182f1

Please sign in to comment.