Limiting descriptions to 160 characters.

This commit is contained in:
sergiotarxz 2023-05-08 18:50:34 +02:00
parent 76ed2603ac
commit 2437d39a60

View File

@ -3,7 +3,7 @@
% my $current_category_slug = stash 'current_category_slug'; % my $current_category_slug = stash 'current_category_slug';
% my $description_og = stash 'description_og'; % my $description_og = stash 'description_og';
% $description_og =~ s/\s+/ /g; % $description_og =~ s/\s+/ /g;
% $description_og = substr $description_og, 0, 300; % $description_og = substr $description_og, 0, 160;
% $description_og =~ s/\s\S+$//; % $description_og =~ s/\s\S+$//;
% $description_og.='...'; % $description_og.='...';
% my $base_url = config 'base_url'; % my $base_url = config 'base_url';