Limiting descriptions to 160 characters.
This commit is contained in:
parent
76ed2603ac
commit
2437d39a60
@ -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';
|
||||||
|
Loading…
Reference in New Issue
Block a user