Merge pull request #1603 from gethinode/develop

fix: enable markdown in card titles
This commit is contained in:
Mark Dumay
2025-10-01 15:20:20 +02:00
committed by GitHub

View File

@@ -34,7 +34,7 @@
<a href="{{ $href }}" class="{{ if $color }}link-bg-{{ $color }}{{ else }}card-body-link{{ end }} stretched-link">
{{ if or $title $links }}
<p class="card-title fs-lg-5 fs-6">
{{- with $title }}{{ . }}{{ end }}
{{- with $title }}{{ . | page.RenderString }}{{ end }}
{{ with $links }}{{ partial "inline/card-icons.html" (dict "links" .) }}{{ end -}}
</p>
{{ end -}}
@@ -48,7 +48,7 @@
<div>
{{ if or $title $links }}
<p class="card-title fs-lg-5 fs-6">
{{- with $title }}{{ . }}{{ end }}
{{- with $title }}{{ . | page.RenderString }}{{ end }}
{{ with $links }}{{ partial "inline/card-icons.html" (dict "links" .) }}{{ end -}}
</p>
{{ end -}}