Skip to content

Commit 9c0c7ae

Browse files
Moves content var into a better location. (#318)
* Moves content var into a better location. * Renders lead text as markdown in more places.
1 parent 118c084 commit 9c0c7ae

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

themes/hextra/layouts/docs/list.html

+4-3
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88
<div class="content">
99
<h1>{{ .Title }}</h1>
1010

11+
<p class="lead italic">{{ .Params.Lead | markdownify }}</p>
12+
1113
{{ .Content }}
12-
<p class="lead italic">{{ .Params.Lead }}</p>
1314

1415
<div class="hextra-cards hx-mt-4 hx-gap-4 hx-grid not-prose">
1516
{{ range .Pages }}
@@ -20,9 +21,9 @@ <h1>{{ .Title }}</h1>
2021
</span>
2122
<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">
2223
{{ if .Params.lead }}
23-
{{ .Params.lead | truncate 200 }}
24+
{{ .Params.lead | truncate 200 | markdownify }}
2425
{{ else }}
25-
{{ .Summary | truncate 200 }}
26+
{{ .Summary | truncate 200 | markdownify }}
2627
{{ end }}
2728
</div>
2829
</a>

0 commit comments

Comments
 (0)