Adding images to articles preview in category which have them.
This commit is contained in:
parent
49cedaa5fc
commit
61da57fec0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user