Skip to content

Commit

Permalink
Added more social link
Browse files Browse the repository at this point in the history
Added link to Google Scholar and Researchgate
  • Loading branch information
Fastbyte01 committed Mar 24, 2019
1 parent 43ff1e0 commit b925b96
Show file tree
Hide file tree
Showing 10 changed files with 77 additions and 17 deletions.
46 changes: 46 additions & 0 deletions assets/font/demo_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,12 @@ <h1 class="logo"><a href="https://www.iconfont.cn/" title="iconfont 首页" targ
<div class="code-name">&amp;#xe684;</div>
</li>

<li class="dib">
<span class="icon iconfont">&#xe693;</span>
<div class="name">researchgate</div>
<div class="code-name">&amp;#xe693;</div>
</li>

<li class="dib">
<span class="icon iconfont">&#xf163;</span>
<div class="name">angellist</div>
Expand Down Expand Up @@ -360,6 +366,12 @@ <h1 class="logo"><a href="https://www.iconfont.cn/" title="iconfont 首页" targ
<div class="code-name">&amp;#xe765;</div>
</li>

<li class="dib">
<span class="icon iconfont">&#xe736;</span>
<div class="name">Google scholar</div>
<div class="code-name">&amp;#xe736;</div>
</li>

<li class="dib">
<span class="icon iconfont">&#xe8ed;</span>
<div class="name">foursquare</div>
Expand Down Expand Up @@ -830,6 +842,15 @@ <h3 id="-">第三步:挑选相应图标并获取字体编码,应用于页面
</div>
</li>

<li class="dib">
<span class="icon iconfont icon-researchgate"></span>
<div class="name">
researchgate
</div>
<div class="code-name">.icon-researchgate
</div>
</li>

<li class="dib">
<span class="icon iconfont icon-angellist"></span>
<div class="name">
Expand Down Expand Up @@ -911,6 +932,15 @@ <h3 id="-">第三步:挑选相应图标并获取字体编码,应用于页面
</div>
</li>

<li class="dib">
<span class="icon iconfont icon-Googlescholar"></span>
<div class="name">
Google scholar
</div>
<div class="code-name">.icon-Googlescholar
</div>
</li>

<li class="dib">
<span class="icon iconfont icon-foursquare"></span>
<div class="name">
Expand Down Expand Up @@ -1317,6 +1347,14 @@ <h3 id="-">第二步:挑选相应图标并获取类名,应用于页面:</h
<div class="code-name">#icon-sun</div>
</li>

<li class="dib">
<svg class="icon svg-icon" aria-hidden="true">
<use xlink:href="#icon-researchgate"></use>
</svg>
<div class="name">researchgate</div>
<div class="code-name">#icon-researchgate</div>
</li>

<li class="dib">
<svg class="icon svg-icon" aria-hidden="true">
<use xlink:href="#icon-angellist"></use>
Expand Down Expand Up @@ -1389,6 +1427,14 @@ <h3 id="-">第二步:挑选相应图标并获取类名,应用于页面:</h
<div class="code-name">#icon-youtube</div>
</li>

<li class="dib">
<svg class="icon svg-icon" aria-hidden="true">
<use xlink:href="#icon-Googlescholar"></use>
</svg>
<div class="name">Google scholar</div>
<div class="code-name">#icon-Googlescholar</div>
</li>

<li class="dib">
<svg class="icon svg-icon" aria-hidden="true">
<use xlink:href="#icon-foursquare"></use>
Expand Down
20 changes: 14 additions & 6 deletions assets/font/iconfont.css

Large diffs are not rendered by default.

Binary file modified assets/font/iconfont.eot
Binary file not shown.
2 changes: 1 addition & 1 deletion assets/font/iconfont.js

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions assets/font/iconfont.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/font/iconfont.ttf
Binary file not shown.
Binary file modified assets/font/iconfont.woff
Binary file not shown.
Binary file modified assets/font/iconfont.woff2
Binary file not shown.
2 changes: 2 additions & 0 deletions exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ disqusShortname = "yourdiscussshortname"
#Dribble = "xxxx"
#Wordpress = "xxxx"
#Vine = "xxxx"
#Googlescholar = "xxxx"
#Researchgate = "xxxx"

[params.share]
Twitter = true
Expand Down
18 changes: 8 additions & 10 deletions layouts/partials/social.html
Original file line number Diff line number Diff line change
Expand Up @@ -155,13 +155,11 @@
<a href="https://{{ . }}.wordpress.com" rel="me noopener noreffer" target="_blank"><i class="iconfont icon-wordpress"></i></a>
{{ end }}
{{ with .Site.Params.Social.Vine}}
<a href="https://vine.co/{{ . }}" rel="me noopener noreffer" target="_blank"><i class="iconfont icon-vine"></i></a>
{{ end }}








<a href="https://vine.co/" rel="me noopener noreffer" target="_blank"><i class="iconfont icon-vine"></i></a>
{{ end }}
{{ with .Site.Params.Social.Googlescholar}}
<a href="https://scholar.google.com/citations?{{ . }}" rel="me noopener noreffer" target="_blank"><i class="iconfont icon-Googlescholar"></i></a>
{{ end }}
{{ with .Site.Params.Social.Researchgate}}
<a href="https://www.researchgate.net/profile/{{ . }}" rel="me noopener noreffer" target="_blank"><i class="iconfont icon-researchgate"></i></a>
{{ end }}

0 comments on commit b925b96

Please sign in to comment.