% use DateTime::Format::ISO8601;
%
% use Mojo::DOM;
% use Mojo::Util;
%
% use OwlcodeTech::Posts;
% use OwlcodeTech::Categories;
% my $categories = OwlcodeTech::Categories->new->Retrieve;
% my $description_og = '
% if (defined $post->{image}) {
<%== $post->{title} %>
% } else {
<%= $post->{title} %>
% }
% my $user_agent = stash 'useragent';
% if ($user_agent !~ /LinkedInBot/) {
<%== $post->{content} %>
% } else {
% my $content = $post->{content};
% my $dom = Mojo::DOM->new($content);
% my @images = $dom->find('img')->each;
% for my $image (@images) {
% $image->remove;
% }
<%== $dom->to_string() %>
% }
% my $date_article = DateTime::Format::ISO8601->parse_datetime($post->{date});
% $date_article->set_time_zone('Europe/Madrid');
Author: <%= $post->{author} %>
Fecha: <%= $date_article %>.