diff options
author | Michael Romero <halogenica@users.noreply.github.com> | 2022-06-26 11:03:30 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-26 11:03:30 +0300 |
commit | 9c36e190dedbf1c97ea54ae6d35437777195afde (patch) | |
tree | d27e9ce21b775434320267c1ad244577c37c8d86 | |
parent | 696760d95364abb6ed1f92cc9530fb515a2e0639 (diff) | |
parent | 177d9b37feef9a062426173060acdc7b394d8ae6 (diff) |
Merge pull request #346 from utahcon/mastodon-verification
Enable link verification per https://docs.joinmastodon.org/user/profile/
-rw-r--r-- | data/beautifulhugo/social.toml | 1 | ||||
-rw-r--r-- | layouts/partials/footer.html | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/data/beautifulhugo/social.toml b/data/beautifulhugo/social.toml index 0ebf774..ea9f7fa 100644 --- a/data/beautifulhugo/social.toml +++ b/data/beautifulhugo/social.toml @@ -153,6 +153,7 @@ id = "mastodon" url = "https://%s" title = "Mastodon" icon = "fab fa-mastodon" +rel = "me" [[social_icons]] id = "weibo" diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 8b48793..31ecaf9 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -9,7 +9,7 @@ {{ range .Site.Data.beautifulhugo.social.social_icons }} {{- if isset $.Site.Author .id }} <li> - <a href="{{ printf .url (index $.Site.Author .id) }}" title="{{ .title }}"> + <a {{ if .rel }}rel="{{ .rel }}"{{- end -}} href="{{ printf .url (index $.Site.Author .id) }}" title="{{ .title }}"> <span class="fa-stack fa-lg"> <i class="fas fa-circle fa-stack-2x"></i> <i class="{{ .icon }} fa-stack-1x fa-inverse"></i> |