Skip to content

Commit

Permalink
Idea-440: Add rel attribute to social media link configuration (#445)
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-baiborodine authored Nov 18, 2022
1 parent 868d242 commit 5d7f51b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ disqusShortname = ""
# all icons https://fontawesome.com/icons?d=gallery&m=free
# brand icons https://fontawesome.com/icons?d=gallery&s=brands&m=free
socialMediaLinks = [
{ link = "https://twitter.com/TheRealLednerb", icon = "fab fa-twitter" },
{ link = "https://twitter.com/TheRealLednerb", icon = "fab fa-twitter", rel = "me" },
{ link = "https://github.com/Lednerb", icon = "fab fa-github" },
]

Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<strong>{{ i18n "socialMedia" }}</strong>

{{ range .Site.Params.socialMediaLinks }}
<a href="{{ .link }}" target="_blank"><i class="{{ .icon }}"></i></a>
<a href="{{ .link }}" target="_blank" rel="{{ .rel }}"><em class="{{ .icon }}"></em></a>
{{ end }}
</div>
{{ end }}
Expand Down
2 changes: 1 addition & 1 deletion testing/testing-example-site/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ disqusShortname = "bilberry-hugo-theme"
# all icons https://fontawesome.com/icons?d=gallery&m=free
# brand icons https://fontawesome.com/icons?d=gallery&s=brands&m=free
socialMediaLinks = [
{ link = "https://twitter.com/TheRealLednerb", icon = "fab fa-twitter" },
{ link = "https://twitter.com/TheRealLednerb", icon = "fab fa-twitter", rel = "me" },
{ link = "https://github.com/Lednerb", icon = "fab fa-github" },
]

Expand Down

0 comments on commit 5d7f51b

Please sign in to comment.