Skip to content
Permalink
Browse files

adding support for type in social links (#250)

* adding support for  in social links

* updating example config for RSS social icon
  • Loading branch information
anson-vandoren authored and luizdepra committed Jan 13, 2020
1 parent 3168357 commit 4369ed76d232588c124070dad37ea135c532f7f7
Showing with 9 additions and 1 deletion.
  1. +1 −0 CONTRIBUTORS.md
  2. +7 −0 exampleSite/config.toml
  3. +1 −1 layouts/partials/home.html
@@ -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)
@@ -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]
@@ -10,7 +10,7 @@ <h2>{{ .Site.Params.info }}</h2>
{{ range sort .}}
{{ if .icon }}
<li>
<a href="{{ .url }}" aria-label="{{ .name }}" {{ if .rel }}rel="{{ .rel }}"{{ end }} {{ if .target }}target="{{ .target }}"{{ end }}>
<a href="{{ .url }}" aria-label="{{ .name }}" {{ if .rel }}rel="{{ .rel }}"{{ end }} {{ if .target }}target="{{ .target }}"{{ end }} {{ if .type }}type="{{ .type }}"{{ end }}>
<i class="{{ .icon }}" aria-hidden="true"></i>
</a>
</li>

0 comments on commit 4369ed7

Please sign in to comment.
You can’t perform that action at this time.