1
0
Fork 0
mirror of https://github.com/dillonzq/LoveIt.git synced 2025-03-21 22:38:52 +01:00

Add Dev.To to Social Media Icons ()

Add Dev.To to Social Media Icons
This commit is contained in:
Dillon 2020-01-29 18:51:31 +08:00 committed by GitHub
commit 2536261347
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 0 deletions
exampleSite
layouts/partials/home

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 }}