mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-04-28 19:43:31 +08:00
Add rel attribute
Adds the 'rel' attribute to social links to allow for verified Mastodon links
This commit is contained in:
parent
c1fcec95a6
commit
5a4ad369ba
@ -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 }}
|
||||
|
Loading…
Reference in New Issue
Block a user