From 4217a2ea367e833c19894a2a87d6dbb29d756770 Mon Sep 17 00:00:00 2001 From: Jimmy Cai Date: Sun, 17 Mar 2024 20:10:13 +0100 Subject: [PATCH] fix: remove `\n` character from meta description --- layouts/partials/data/description.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/data/description.html b/layouts/partials/data/description.html index 4f54e5c..7f6cc32 100644 --- a/layouts/partials/data/description.html +++ b/layouts/partials/data/description.html @@ -14,4 +14,4 @@ {{ $description = .Summary }} {{ end }} -{{ return ($description | plainify)}} \ No newline at end of file +{{ return (replaceRE "\n" " " $description | plainify) }} \ No newline at end of file