From cd1e2ab4278272f82afaa08980f70686bea46dba Mon Sep 17 00:00:00 2001
From: Programazing <chris@thatamazingprogrammer.com>
Date: Thu, 2 Jan 2020 07:47:18 -0500
Subject: [PATCH] Add Devto to Social Media Icons

---
 exampleSite/config.toml           | 1 +
 exampleSite/zh/config.toml        | 1 +
 layouts/partials/home/social.html | 3 +++
 3 files changed, 5 insertions(+)

diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 8c9f68ef..f5106e7d 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -174,6 +174,7 @@ staticDir = ["static", "../assets/others"]               # static directories
     #Researchgate = "xxxx"
     #Mastodon = "xxxx"
     #Thingiverse = "xxxx"
+    #Devto = "xxxx"
 
   [params.share]                                         # Social Share Links in post page
     enable = true
diff --git a/exampleSite/zh/config.toml b/exampleSite/zh/config.toml
index 8c8332f2..b4312425 100644
--- a/exampleSite/zh/config.toml
+++ b/exampleSite/zh/config.toml
@@ -174,6 +174,7 @@ staticDir = ["../static", "../../assets/others"]         # 静态文件目录
     #Researchgate = "xxxx"
     #Mastodon = "xxxx"
     #Thingiverse = "xxxx"
+    #Devto = "xxxx"
 
   [params.share]                                         # 文章页面的分享信息设置
     enable = true
diff --git a/layouts/partials/home/social.html b/layouts/partials/home/social.html
index 469f9e9b..3a8531c3 100644
--- a/layouts/partials/home/social.html
+++ b/layouts/partials/home/social.html
@@ -160,6 +160,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" target="_blank fa-fw"></i></a>
 {{ end }}
\ No newline at end of file