Add badge and button shortcodes

This commit is contained in:
James Panther
2021-08-16 15:09:21 +10:00
parent 7ce10997ce
commit fe7d59a855
6 changed files with 18 additions and 9 deletions
+7
View File
@@ -0,0 +1,7 @@
<a
class="px-4 py-2 !text-white !no-underline rounded-md bg-primary-600 hover:!bg-primary-500 dark:bg-primary-800 dark:hover:!bg-primary-700"
{{ with .Get "href" }}href="{{ . }}"{{ end }}
{{ with .Get "target" }}target="{{ . }}"{{ end }}
role="button"
>{{ .Inner }}
</a>