Adding images to articles preview in category which have them.

This commit is contained in:
sergiotarxz 2022-11-14 03:11:25 +01:00
parent 49cedaa5fc
commit 61da57fec0

View File

@ -21,6 +21,9 @@
% my $date_article = DateTime::Format::ISO8601->parse_datetime($post->{date});
% $date_article->set_time_zone('Europe/Madrid');
<p class="date"><%= ''.$date_article %></p>
% if (defined $post->{image}) {
<img alt="Portada de <%=$post->{title}%>" src="<%=$post->{image}%>"/>
% }
<h4><%=$post->{title}%></h4>
% my $xml = Mojo::DOM->new($post->{content});
% my $text = $xml->all_text;