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

github.com/CaiJimmy/hugo-theme-stack.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Morris <tom@tommorris.org>2022-10-29 15:04:21 +0300
committerGitHub <noreply@github.com>2022-10-29 15:04:21 +0300
commit861136354918ee1f25aaf1e07c80b5a9b88b6ade (patch)
tree2ae0557832a9ddbaece1620dc0e3cc6f6e4b0895
parent73437f24eab862e71f087d6835a543882ce99296 (diff)
feat: add `rel=me` to social links (#707)
Adds rel-me to social links [rel="me"] is a commonly used way to show that that two websites or social media accounts are the same, and is used for authentication and proving site ownership in a variety of ways. [rel="me"]: https://indieweb.org/rel-me
-rw-r--r--layouts/partials/sidebar/left.html1
1 files changed, 1 insertions, 0 deletions
diff --git a/layouts/partials/sidebar/left.html b/layouts/partials/sidebar/left.html
index f255389..f94e50a 100644
--- a/layouts/partials/sidebar/left.html
+++ b/layouts/partials/sidebar/left.html
@@ -45,6 +45,7 @@
href='{{ .URL }}'
{{ if eq (default true .Params.newTab) true }}target="_blank"{{ end }}
{{ with .Name }}title="{{ . }}"{{ end }}
+ rel="me"
>
{{ $icon := default "link" .Params.Icon }}
{{ with $icon }}