From 2cb5ba683ba5bb1533522fac7bf5eb0fd88c9f3d Mon Sep 17 00:00:00 2001 From: Jimmy Cai Date: Sun, 17 Mar 2024 20:39:16 +0100 Subject: [PATCH] fix: remove `\n` character from meta description (#980) --- 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