Merge pull request #1678 from sculptor189/main

 Add rel attribute to button shortcode
This commit is contained in:
Nuno Coração
2024-08-28 16:36:38 +01:00
committed by GitHub
3 changed files with 3 additions and 2 deletions

View File

@@ -2,6 +2,7 @@
class="!rounded-md bg-primary-600 px-4 py-2 !text-neutral !no-underline hover:!bg-primary-500 dark:bg-primary-800 dark:hover:!bg-primary-700"
{{ with .Get "href" }}href="{{ . }}"{{ end }}
{{ with .Get "target" }}target="{{ . }}"{{ end }}
{{ with .Get "rel" }}rel="{{ . }}"{{ end }}
role="button"
>
{{ .Inner }}