From f5e42839611e6c1b02a50512f95e8d2f4dad642b Mon Sep 17 00:00:00 2001 From: verbumfeit Date: Mon, 8 Jan 2024 19:25:54 +0100 Subject: [PATCH] chore: add rel="me" attribute to Mastodon navbar icon (#243) * Add rel="me" attribute to Mastodon navbar icon The rel="me" attribute enables verified links on the linked Mastodon profile * Set $rel based on icon name --- layouts/partials/navbar.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/layouts/partials/navbar.html b/layouts/partials/navbar.html index cca829cf..ccf781c3 100644 --- a/layouts/partials/navbar.html +++ b/layouts/partials/navbar.html @@ -42,7 +42,8 @@ {{/* Display icon menu item */}} {{- if .Params.icon -}} - + {{- $rel := cond (eq .Params.icon "mastodon") "noreferer me" "noreferer" }} + {{- partial "utils/icon.html" (dict "name" .Params.icon "attributes" "height=24") -}} {{ or (T .Identifier) .Name | safeHTML }}