Adding preview to be shown.
This commit is contained in:
parent
f221532696
commit
43f7130901
@ -19,7 +19,7 @@
|
|||||||
<title><%= $title_meta %></title>
|
<title><%= $title_meta %></title>
|
||||||
<meta name="description" content="<%=defined $description_og ? $description_og : 'Lee más sobre: ' . title %>" />
|
<meta name="description" content="<%=defined $description_og ? $description_og : 'Lee más sobre: ' . title %>" />
|
||||||
<meta property="og:title" content="<%= $title_meta %>"/>
|
<meta property="og:title" content="<%= $title_meta %>"/>
|
||||||
<meta property="og:site_name" content="burguillos.info" />
|
<meta property="og:site_name" content="<%=$site_name%>" />
|
||||||
% my $ogimage = stash 'ogimage';
|
% my $ogimage = stash 'ogimage';
|
||||||
% my $user_agent = stash 'useragent';
|
% my $user_agent = stash 'useragent';
|
||||||
|
|
||||||
|
@ -8,8 +8,9 @@
|
|||||||
% use OwlcodeTech::Posts;
|
% use OwlcodeTech::Posts;
|
||||||
%
|
%
|
||||||
% my $description_og = '<div>'.$current_category->{description}.'</div>';
|
% my $description_og = '<div>'.$current_category->{description}.'</div>';
|
||||||
|
% my $base_url = config 'base_url';
|
||||||
% $description_og = Mojo::DOM->new($description_og)->all_text;
|
% $description_og = Mojo::DOM->new($description_og)->all_text;
|
||||||
% layout 'default', current_category => $current_category, description_og => $description_og;
|
% layout 'default', current_category => $current_category, description_og => $description_og, ogimage => "$base_url/@{[$current_category->{slug}]}-preview.png";
|
||||||
% title $current_category->{title};
|
% title $current_category->{title};
|
||||||
<div class="description">
|
<div class="description">
|
||||||
% if (defined $current_category->{image}) {
|
% if (defined $current_category->{image}) {
|
||||||
|
Loading…
Reference in New Issue
Block a user