adding support for type in social links (#250)
* adding support for in social links * updating example config for RSS social icon
This commit is contained in:
parent
316835734f
commit
4369ed76d2
|
@ -53,3 +53,4 @@
|
||||||
- [KK](https://github.com/bebound)
|
- [KK](https://github.com/bebound)
|
||||||
- [Eli W. Hunter](https://github.com/elihunter173)
|
- [Eli W. Hunter](https://github.com/elihunter173)
|
||||||
- [Víctor López](https://github.com/viticlick)
|
- [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"
|
icon = "fab fa-medium"
|
||||||
weight = 5
|
weight = 5
|
||||||
url = "https://medium.com/@johndoe"
|
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]
|
[languages]
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
{{ range sort .}}
|
{{ range sort .}}
|
||||||
{{ if .icon }}
|
{{ if .icon }}
|
||||||
<li>
|
<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>
|
<i class="{{ .icon }}" aria-hidden="true"></i>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
Loading…
Reference in New Issue