Merge pull request #2566 from ZhenShuo2021/fix/keyword

🐛 Fix(keyword): trim empty spaces
This commit is contained in:
Nuno C.
2025-11-03 22:16:10 +00:00
committed by GitHub
+4 -3
View File
@@ -1,12 +1,13 @@
{{ $icon := .Get "icon" }} {{- $icon := .Get "icon" -}}
<div class="flex mt-2"> <div class="flex mt-2">
<span <span
class="rounded-full bg-primary-500 dark:bg-primary-400 text-neutral-50 dark:text-neutral-800 px-1.5 py-[1px] text-xs font-normal"> class="rounded-full bg-primary-500 dark:bg-primary-400 text-neutral-50 dark:text-neutral-800 px-1.5 py-[1px] text-xs font-normal">
<span class="flex flex-row items-center"> <span class="flex flex-row items-center">
{{ if $icon }} {{- if $icon -}}
<span class="mr-1">{{ partial "icon" $icon }}</span> <span class="mr-1">{{ partial "icon" $icon }}</span>
{{ end }} {{- end -}}
<span> {{- .Inner | markdownify -}} </span> <span> {{- .Inner | markdownify -}} </span>
</span> </span>
</span> </span>
</div> </div>
{{- /* Trim EOF */ -}}