From 5a4ad369bae52f947409e074a44c9c48ec5f9f8c Mon Sep 17 00:00:00 2001 From: phoenix Date: Mon, 12 Jun 2023 18:49:32 +0200 Subject: [PATCH] Add rel attribute Adds the 'rel' attribute to social links to allow for verified Mastodon links --- 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..658ca02 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 }} + {{ if .Params.rel }}rel="{{ .Params.rel }}" {{ end }} > {{ $icon := default "link" .Params.Icon }} {{ with $icon }}