From e1aaaf7463756f65a866ff15f4c15e25b78c82fe Mon Sep 17 00:00:00 2001
From: Ćukasz <41156511+lszczygielek@users.noreply.github.com>
Date: Sat, 19 Apr 2025 09:10:55 +0000
Subject: [PATCH] fix: planify post content on index (#545)
---
layouts/index.html | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/layouts/index.html b/layouts/index.html
index 8ef148c..6aedee2 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -55,9 +55,9 @@
<h3><a href="{{ .RelPermalink }}">{{ upper .Title }}</a></h3>
{{ end }}
{{ if .Site.Params.fullPostContent }}
- <p>{{ .Content | safeHTML }}</p>
+ <p>{{ .Content | safeHTML | plainify }}</p>
{{ else }}
- <p>{{ .Summary | safeHTML }}</p>
+ <p>{{ .Summary | safeHTML | plainify }}</p>
{{ end }}
<!-- add read more -->
{{- if and (.Truncated) (.Site.Params.readMore) -}}
--
Gitblit v1.10.0