Update social-follow.html

Add rel=me attribute to social links
This commit is contained in:
Altonss 2022-08-19 00:01:03 +02:00 committed by GitHub
parent 470ea40982
commit 7d737348c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,7 @@
{{ $socials := where (partialCached "func/socials/Get" "socials/Get") "follow" "!=" false }} {{ $socials := where (partialCached "func/socials/Get" "socials/Get") "follow" "!=" false }}
<div class="ananke-socials"> <div class="ananke-socials">
{{ range $socials }} {{ range $socials }}
<a href="{{ .url }}" target="_blank" class="{{ .name }} ananke-social-link link-transition stackoverflow link dib z-999 pt3 pt0-l {{ cond (eq $.Site.Language.LanguageDirection "rtl") "ml1" "mr1" }}" title="{{ .label }} link" rel="noopener" aria-label="follow on {{ .label }}——Opens in a new window"> <a href="{{ .url }}" target="_blank" class="{{ .name }} ananke-social-link link-transition stackoverflow link dib z-999 pt3 pt0-l {{ cond (eq $.Site.Language.LanguageDirection "rtl") "ml1" "mr1" }}" title="{{ .label }} link" rel="me noopener" aria-label="follow on {{ .label }}——Opens in a new window">
{{ with .icon }} {{ with .icon }}
<span class="icon">{{ . }}</span> <span class="icon">{{ . }}</span>
{{ else }} {{ else }}