Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/knadh/hugo-ink.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/post-preview.html')
-rw-r--r--layouts/partials/post-preview.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/partials/post-preview.html b/layouts/partials/post-preview.html
index a191248..d9e1765 100644
--- a/layouts/partials/post-preview.html
+++ b/layouts/partials/post-preview.html
@@ -12,10 +12,10 @@
<span class="description">
{{ if isset .Params "description" }}
{{ .Description }}
- {{ else if gt (countrunes .RawContent) 120 }}
- {{ slicestr .RawContent 0 120 }}...
+ {{ else if gt (countrunes (.Content | plainify)) 120 }}
+ {{ slicestr (.Content | plainify) 0 120 }}...
{{ else }}
- {{ .RawContent }}
+ {{ .Content | plainify }}
{{ end }}
</span>
</div>