From 4369ed76d232588c124070dad37ea135c532f7f7 Mon Sep 17 00:00:00 2001 From: Anson VanDoren Date: Mon, 13 Jan 2020 07:12:09 -1000 Subject: [PATCH] adding support for type in social links (#250) * adding support for in social links * updating example config for RSS social icon --- CONTRIBUTORS.md | 1 + exampleSite/config.toml | 7 +++++++ layouts/partials/home.html | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 09e3d8d..b7dc7f6 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -53,3 +53,4 @@ - [KK](https://github.com/bebound) - [Eli W. Hunter](https://github.com/elihunter173) - [Víctor López](https://github.com/viticlick) +- [Anson VanDoren](https://github.com/anson-vandoren) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 1d7a284..2a38e9b 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -80,6 +80,13 @@ disqusShortname = "yourdiscussshortname" icon = "fab fa-medium" weight = 5 url = "https://medium.com/@johndoe" +[[params.social]] + name = "RSS" + icon = "fas fa-rss" + weight = 6 + url = "https://myhugosite.com/index.xml" + rel = "alternate" + type = "application/rss+xml" [languages] diff --git a/layouts/partials/home.html b/layouts/partials/home.html index 91a832a..e6ab9ce 100644 --- a/layouts/partials/home.html +++ b/layouts/partials/home.html @@ -10,7 +10,7 @@ {{ range sort .}} {{ if .icon }}
  • - +