Skip to content

Commit

Permalink
chore: improve cards compatibility with steps (#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
imfing authored Nov 10, 2023
1 parent c0a1bc3 commit 21b0acd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions layouts/shortcodes/card.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,4 @@
<div class="line-clamp-3 text-sm font-normal text-gray-500 dark:text-gray-400 px-4 mb-4 mt-2">{{- $subtitle | markdownify -}}</div>
{{- end -}}
</a>
{{- /* Strip trailing newline. */ -}}
2 changes: 1 addition & 1 deletion layouts/shortcodes/cards.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{ $rows := .Get "rows" | default "3" }}

<div class="hextra-cards mt-4 gap-4 grid not-prose" style="--rows: {{ $rows }};">
{{ .Inner }}
{{- .Inner -}}
</div>

0 comments on commit 21b0acd

Please sign in to comment.