Merge pull request #1678 from sculptor189/main

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

No files matched your search

+1
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 }}