<%= ''.$date_article %>
<% my $title = $post->{title}; if (length($title) > 50) { $title = substr($title, 0, 47).'...'; } if (defined $post->{image}) { %><%=$title%>
<% my $xml = Mojo::DOM->new($post->{content}); my $text = $xml->all_text; if (length($text) > 50) { $text = substr($text, 0, 47).'...'; } %><%=$text%>