Fix: Remove html tags in excerpt

feature/oscar-theme
Óscar M. Lage 2022-02-28 22:20:50 +01:00
parent db679d67ad
commit c15134e460
1 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
<h3 class="post-item-title">{{ .Title }}</h3>
<time datetime="{{ .PublishDate }}" class="post-item-date">{{ i18n "publishdate" . }}</time>
<p class="post-item-summary">
{{ if isset .Params "summary" }}{{ .Params.Summary | markdownify }}{{ else }}{{ .Summary }}{{ end }}
{{ if isset .Params "summary" }}{{ .Params.Summary | markdownify }}{{ else }}{{ .Summary | plainify | htmlUnescape }}{{ end }}
</p>
</a>
</article>
</article>