Commit 656177ec authored by Daniel Brötzmann's avatar Daniel Brötzmann

Post summary: Strip formatting via plainify

parent d11c7c77
......@@ -25,7 +25,7 @@
</p>
<div class="post-entry">
{{ if .Truncated }}
{{ .Summary }}
{{ .Summary | plainify | htmlUnescape }}
<a href="{{ .Permalink }}" class="post-read-more">[{{ i18n "readMore" }}]</a>
{{ else }}
{{ .Content }}
......
......@@ -30,7 +30,7 @@
{{ partial "post_meta.html" . }}
<div class="post-entry">
{{ if .Truncated }}
{{ if .Params.summary }}{{ .Params.summary }}{{ else }}{{ .Summary }}{{ end }}
{{ if .Params.summary }}{{ .Params.summary }}{{ else }}{{ .Summary | plainify | htmlUnescape }}{{ end }}
<a href="{{ .Permalink }}" class="post-read-more">[{{ i18n "readMore" }}]</a>
{{ else }}
{{ .Content }}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment