mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2026-05-21 11:05:49 +00:00
Refactor entry content rendering in home_info to use RenderString with display options
This commit is contained in:
@@ -4,7 +4,8 @@
|
|||||||
<h1>{{ .Title | markdownify }}</h1>
|
<h1>{{ .Title | markdownify }}</h1>
|
||||||
</header>
|
</header>
|
||||||
<div class="entry-content md-content">
|
<div class="entry-content md-content">
|
||||||
{{ .Content | markdownify }}
|
{{ $opts := dict "display" "block" }}
|
||||||
|
{{ .Content | $.Page.RenderString $opts }}
|
||||||
</div>
|
</div>
|
||||||
<footer class="entry-footer">
|
<footer class="entry-footer">
|
||||||
{{ partial "social_icons.html" (dict "align" site.Params.homeInfoParams.AlignSocialIconsTo) }}
|
{{ partial "social_icons.html" (dict "align" site.Params.homeInfoParams.AlignSocialIconsTo) }}
|
||||||
|
|||||||
Reference in New Issue
Block a user