From 861136354918ee1f25aaf1e07c80b5a9b88b6ade Mon Sep 17 00:00:00 2001 From: Tom Morris Date: Sat, 29 Oct 2022 13:04:21 +0100 Subject: [PATCH 1/2] 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 --- layouts/partials/sidebar/left.html | 1 + 1 file changed, 1 insertion(+) 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 }} From 86314608e39c115f5c7c2966a62f9cf622b64fa7 Mon Sep 17 00:00:00 2001 From: Jimmy Cai Date: Sat, 29 Oct 2022 12:19:09 +0000 Subject: [PATCH 2/2] style: fix indent --- layouts/partials/article/components/details.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/article/components/details.html b/layouts/partials/article/components/details.html index eed3aef..cb85f1c 100644 --- a/layouts/partials/article/components/details.html +++ b/layouts/partials/article/components/details.html @@ -34,7 +34,7 @@ {{ end }} - {{ if (.Params.readingTime | default (.Site.Params.article.readingTime)) }} + {{ if (.Params.readingTime | default (.Site.Params.article.readingTime)) }}
{{ partial "helper/icon" "clock" }}