2023-05-03 05:32:55 +02:00
|
|
|
% use Data::Dumper;
|
|
|
|
% use DateTime::Format::ISO8601;
|
|
|
|
%
|
|
|
|
% use Mojo::DOM;
|
|
|
|
% use Mojo::Util;
|
|
|
|
%
|
|
|
|
% use BurguillosInfo::Posts;
|
|
|
|
%
|
|
|
|
% my $category = stash 'category';
|
|
|
|
% my $attribute = stash 'attribute';
|
2023-05-03 17:17:54 +02:00
|
|
|
% my $description_og = '<div>'.$attribute->{description}.'</div>';
|
|
|
|
% $description_og = Mojo::DOM->new($description_og)->all_text;
|
2023-05-03 05:32:55 +02:00
|
|
|
% my $posts = stash 'posts';
|
2023-05-03 17:17:54 +02:00
|
|
|
% layout 'default', current_category_slug => $category->{slug}, description_og => $description_og;
|
2023-05-03 05:32:55 +02:00
|
|
|
% title $attribute->{title};
|
|
|
|
<div class="description">
|
|
|
|
<h1><%= $attribute->{title} %></h1>
|
|
|
|
<%== $attribute->{description} %>
|
|
|
|
%= include 'page/_list_posts', posts => $posts;
|
|
|
|
</div>
|