diff options
-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> |