Merge pull request #1136 from alxhslm/keyword-lists

 Keyword shortcode
This commit is contained in:
Nuno Coração
2024-01-04 21:09:57 +00:00
committed by GitHub
3 changed files with 48 additions and 1 deletions
+13
View File
@@ -0,0 +1,13 @@
{{ $icon := .Get "icon"}}
<div class="flex mt-2">
<span
class="rounded-full bg-primary-500 dark:bg-primary-300 text-neutral-50 dark:text-neutral-700 px-1.5 py-[1px] text-xs font-normal"
>
<span class="flex flex-row items-center">
{{if $icon}}
<span class="mr-1">{{ partial "icon" $icon }}</span>
{{ end }}
<span> {{- .Inner | markdownify -}} </span>
</span>
</span>
</div>
+1
View File
@@ -0,0 +1 @@
<div class="flex flex-row flex-wrap items-center space-x-2">{{- .Inner -}}</div>