Skip to content

Commit a047a17

Browse files
authored
Merge pull request #1603 from gethinode/develop
fix: enable markdown in card titles
2 parents dd0b8c9 + a7480bf commit a047a17

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

layouts/_partials/assets/card.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
<a href="{{ $href }}" class="{{ if $color }}link-bg-{{ $color }}{{ else }}card-body-link{{ end }} stretched-link">
3535
{{ if or $title $links }}
3636
<p class="card-title fs-lg-5 fs-6">
37-
{{- with $title }}{{ . }}{{ end }}
37+
{{- with $title }}{{ . | page.RenderString }}{{ end }}
3838
{{ with $links }}{{ partial "inline/card-icons.html" (dict "links" .) }}{{ end -}}
3939
</p>
4040
{{ end -}}
@@ -48,7 +48,7 @@
4848
<div>
4949
{{ if or $title $links }}
5050
<p class="card-title fs-lg-5 fs-6">
51-
{{- with $title }}{{ . }}{{ end }}
51+
{{- with $title }}{{ . | page.RenderString }}{{ end }}
5252
{{ with $links }}{{ partial "inline/card-icons.html" (dict "links" .) }}{{ end -}}
5353
</p>
5454
{{ end -}}

0 commit comments

Comments
 (0)