Add rel attribute

Adds the 'rel' attribute to social links to allow for verified Mastodon
links
This commit is contained in:
phoenix 2023-06-12 18:49:32 +02:00
parent c1fcec95a6
commit 5a4ad369ba
No known key found for this signature in database
GPG Key ID: 6E77A590E3F6D71C

View File

@ -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 }}