From 1d838f0e5d98bd5a8e829f67700854c37fe90aea Mon Sep 17 00:00:00 2001 From: sergiotarxz Date: Wed, 3 May 2023 17:39:09 +0200 Subject: [PATCH] Fixing descriptions. --- templates/layouts/default.html.ep | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/layouts/default.html.ep b/templates/layouts/default.html.ep index 6c030a9..e6880b9 100644 --- a/templates/layouts/default.html.ep +++ b/templates/layouts/default.html.ep @@ -2,6 +2,7 @@ % my $categories = stash 'categories'; % my $current_category_slug = stash 'current_category_slug'; % my $description_og = stash 'description_og'; +% $description_og =~ s/\s+/ /g; % $description_og = substr $description_og, 0, 300; % $description_og =~ s/\s\S+$//; % $description_og.='...';