Add Dev.To to Social Media Icons (#32)

Add Dev.To to Social Media Icons
This commit is contained in:
Dillon
2020-01-29 18:51:31 +08:00
committed by GitHub
3 changed files with 5 additions and 0 deletions

View File

@@ -178,6 +178,7 @@ unsafe = true
#Researchgate = "xxxx"
#Mastodon = "xxxx"
#Thingiverse = "xxxx"
#Devto = "xxxx"
[params.share] # Social Share Links in post page
enable = true

View File

@@ -174,6 +174,7 @@ staticDir = ["../static", "../../assets/others"] # 静态文件目录
#Researchgate = "xxxx"
#Mastodon = "xxxx"
#Thingiverse = "xxxx"
#Devto = "xxxx"
[params.share] # 文章页面的分享信息设置
enable = true

View File

@@ -163,6 +163,9 @@
{{ with .Site.Params.Social.Mastodon}}
<a href="https://mastodon.social/{{ . }}" rel="me noopener noreffer" target="_blank"><i class="fab fa-mastodon fa-fw"></i></a>
{{ end }}
{{ with .Site.Params.Social.Devto}}
<a href="https://dev.to/{{ . }}" rel="me noopener noreffer" target="_blank"><i class="fab fa-dev fa-fw" title="Dev.To"></i></a>
{{ end }}
{{ with .Site.Params.Social.Email}}
<a href="mailto:{{.}}" rel="me noopener noreffer"><i class="far fa-envelope fa-fw" target="_blank"></i></a>
{{ end }}