Skip to content

Commit

Permalink
fix: use div instead of h3 for description and summary in article lis…
Browse files Browse the repository at this point in the history
…t page. closes #18
  • Loading branch information
tomowang committed Feb 18, 2024
1 parent 7128b63 commit 537f447
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions layouts/partials/block/desc.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{{ with .Description }}
<h3 class="my-4 text-large text-slate-600 dark:text-slate-300">
<div class="my-4 text-large text-slate-600 dark:text-slate-300">
{{ . | $.Page.RenderString }}
</h3>
</div>
{{ else }}
{{ if .Truncated }}
<h3 class="my-4 text-large text-slate-600 dark:text-slate-300">
{{ .Summary }}
</h3>
{{ with .Summary }}
<div class="my-4 text-large text-slate-600 dark:text-slate-300">
{{ . | $.Page.RenderString }}
</div>
{{ end }}
{{ end }}

0 comments on commit 537f447

Please sign in to comment.