Adding preview to be shown.

This commit is contained in:
sergiotarxz 2023-05-17 05:00:15 +02:00
parent f221532696
commit 43f7130901
2 changed files with 3 additions and 2 deletions

View File

@ -19,7 +19,7 @@
<title><%= $title_meta %></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:site_name" content="burguillos.info" />
<meta property="og:site_name" content="<%=$site_name%>" />
% my $ogimage = stash 'ogimage';
% my $user_agent = stash 'useragent';

View File

@ -8,8 +8,9 @@
% use OwlcodeTech::Posts;
%
% my $description_og = '<div>'.$current_category->{description}.'</div>';
% my $base_url = config 'base_url';
% $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};
<div class="description">
% if (defined $current_category->{image}) {