diff options
author | gprst <32643653+gprst@users.noreply.github.com> | 2021-04-15 00:40:23 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-15 00:40:23 +0300 |
commit | 6597dcdd9fd33f9dc06f957b837fb79e4e58e1a3 (patch) | |
tree | 95e7e758d805cd1d274d157dbc9a8698b18b02b8 | |
parent | 81e0ba022799ab39a78999f36439cb9e7f5f5674 (diff) |
fix(social-icons): "rel" attribute with multiple values in links
The `<a>` tag of social icons had two `rel` attributes, which didn't work — only the first one was kept. Instead of using the `rel` attribute twice with different values, we want to use it once with two values.
-rw-r--r-- | layouts/partials/social-icons.html | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/layouts/partials/social-icons.html b/layouts/partials/social-icons.html index bdcadbf..3250856 100644 --- a/layouts/partials/social-icons.html +++ b/layouts/partials/social-icons.html @@ -5,9 +5,13 @@ {{ range $icons }} {{ $icon := anchorize . }} {{ if isset $currentPage.Site.Params $icon }} - <a class="social-icons__link" rel="me" title="{{ . }}" - href="{{ index $currentPage.Site.Params $icon }}" - target="_blank" rel="noopener"> + <a + class="social-icons__link" + title="{{ . }}" + href="{{ index $currentPage.Site.Params $icon }}" + target="_blank" + rel="me noopener" + > <div class="social-icons__icon" style="background-image: url('{{print "svg/" $icon ".svg" | absURL}}')"></div> </a> {{ end }} |