Fixing missing preview image.
This commit is contained in:
parent
d5d7093cbe
commit
7f52d9931c
@ -8,7 +8,8 @@
|
|||||||
% my $categories = BurguillosInfo::Categories->new->Retrieve;
|
% my $categories = BurguillosInfo::Categories->new->Retrieve;
|
||||||
% my $description_og = '<div>'.$post->{content}.'</div>';
|
% my $description_og = '<div>'.$post->{content}.'</div>';
|
||||||
% $description_og = Mojo::DOM->new($description_og)->all_text;
|
% $description_og = Mojo::DOM->new($description_og)->all_text;
|
||||||
% layout 'default', current_category_slug => $current_category->{slug}, categories => $categories, description_og => $description_og;
|
% my $base_url = config 'base_url';
|
||||||
|
% layout 'default', current_category_slug => $current_category->{slug}, categories => $categories, description_og => $description_og, ogimage => "$base_url/posts/$post->{slug}-preview.png";
|
||||||
% title $post->{title};
|
% title $post->{title};
|
||||||
<div class="description">
|
<div class="description">
|
||||||
<h1><%= $post->{title} %></h1>
|
<h1><%= $post->{title} %></h1>
|
||||||
|
Loading…
Reference in New Issue
Block a user