Add transform.Plainify to the summary

Signed-off-by: Melroy van den Berg <melroy@melroy.org>
This commit is contained in:
Melroy van den Berg 2024-10-22 18:29:13 +02:00 committed by GitHub
parent 0306b6a74d
commit c4ae1000a0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -66,7 +66,7 @@
{{- $setup := .setup -}} {{- $setup := .setup -}}
{{- $separator := "&" -}} {{- $separator := "&" -}}
{{- $title := $context.Title | transform.HTMLEscape -}} {{- $title := $context.Title | transform.HTMLEscape -}}
{{- $description := $context.Summary | transform.HTMLEscape -}} {{- $description := $context.Summary | transform.Plainify | transform.HTMLEscape -}}
{{- $permalink := $context.Permalink | transform.HTMLEscape -}} {{- $permalink := $context.Permalink | transform.HTMLEscape -}}
{{- with $setup.separator -}} {{- with $setup.separator -}}
{{- $separator = . -}} {{- $separator = . -}}