Skip to content

Commit

Permalink
Renders lead text as markdown in more places.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnymatthews committed Jan 29, 2025
1 parent cf8a4cd commit bccd69e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions themes/hextra/layouts/docs/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<div class="content">
<h1>{{ .Title }}</h1>

<p class="lead italic">{{ .Params.Lead }}</p>
<p class="lead italic">{{ .Params.Lead | markdownify }}</p>

{{ .Content }}

Expand All @@ -21,9 +21,9 @@ <h1>{{ .Title }}</h1>
</span>
<div class="hextra-card-subtitle hx-line-clamp-3 hx-text-sm hx-font-normal hx-text-gray-500 dark:hx-text-gray-400 hx-px-4 hx-mb-4 hx-mt-2">
{{ if .Params.lead }}
{{ .Params.lead | truncate 200 }}
{{ .Params.lead | truncate 200 | markdownify }}
{{ else }}
{{ .Summary | truncate 200 }}
{{ .Summary | truncate 200 | markdownify }}
{{ end }}
</div>
</a>
Expand Down

0 comments on commit bccd69e

Please sign in to comment.