Skip to content

Commit f5a9cf0

Browse files
committed
Refactor entry content rendering in home_info to use RenderString with display options
1 parent dd36eab commit f5a9cf0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

layouts/partials/home_info.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
<h1>{{ .Title | markdownify }}</h1>
55
</header>
66
<div class="entry-content md-content">
7-
{{ .Content | markdownify }}
7+
{{ $opts := dict "display" "block" }}
8+
{{ .Content | $.Page.RenderString $opts }}
89
</div>
910
<footer class="entry-footer">
1011
{{ partial "social_icons.html" (dict "align" site.Params.homeInfoParams.AlignSocialIconsTo) }}

0 commit comments

Comments
 (0)