Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/halogenica/beautifulhugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Barrett <adam.barrett.ext@bayer.com>2020-06-25 17:17:26 +0300
committerAdam Barrett <adam.barrett.ext@bayer.com>2020-06-25 17:17:26 +0300
commit177d9b37feef9a062426173060acdc7b394d8ae6 (patch)
treeeb617b6addc20b3a5589c44b5a2e6367014b9b77
parent1ff3894b84b1802433b58e22dd22f4eb46a49fa9 (diff)
Enable link verification per https://docs.joinmastodon.org/user/profile/
-rw-r--r--data/beautifulhugo/social.toml1
-rw-r--r--layouts/partials/footer.html2
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>