diff --git a/content/categories/contacto.xml b/content/categories/contacto.xml index 54e5be5..534625f 100644 --- a/content/categories/contacto.xml +++ b/content/categories/contacto.xml @@ -8,7 +8,14 @@

Hosting y desarrollo de páginas web.

-

Contacta con nosotros en contact@owlcode.tech.

+ +

Desde Owlcode.tech podemos ayudarte a crear o mejorar tu presencia online.

+ +

Ofrecemos servicios de SEO, diseño web, mantenimiento, seguridad web, desarrollo de software, servidor de correo y muchas cosas más.

+ +

Somos especialistas en el Software Libre que impulsa la web.

+ +

No dudes en contactarnos a través de este email contact@owlcode.tech.

contact-us diff --git a/templates/page/_list_posts.html.ep b/templates/page/_list_posts.html.ep index 5243efd..d8d0e90 100644 --- a/templates/page/_list_posts.html.ep +++ b/templates/page/_list_posts.html.ep @@ -1,30 +1,29 @@ % my $posts = stash 'posts'; -

Artículos

-
-% unless (defined $posts && @$posts) { -

Parece que aun no hay artículos.

+% if (defined $posts && @$posts) { +

Artículos

+
+% for my $post (@$posts) { + +
<% + my $date_article = DateTime::Format::ISO8601->parse_datetime($post->{date}); + $date_article->set_time_zone('Europe/Madrid'); + %>
+

<%= ''.$date_article %>

<% + if (defined $post->{image}) { + %>
+ Portada de <%=$post->{title}%> +
<% + } + %>
+

<%=$post->{title}%>

<% + my $xml = Mojo::DOM->new($post->{content}); + my $text = $xml->all_text; + if (length($text) > 120) { + $text = substr($text, 0, 100).'...'; + } + %>

<%=$text%>

Escrito por <%=$post->{author}%>

+
+
+% } +
% } -% for my $post (@$posts) { - -
<% - my $date_article = DateTime::Format::ISO8601->parse_datetime($post->{date}); - $date_article->set_time_zone('Europe/Madrid'); - %>
-

<%= ''.$date_article %>

<% - if (defined $post->{image}) { - %>
- Portada de <%=$post->{title}%> -
<% - } - %>
-

<%=$post->{title}%>

<% - my $xml = Mojo::DOM->new($post->{content}); - my $text = $xml->all_text; - if (length($text) > 120) { - $text = substr($text, 0, 100).'...'; - } - %>

<%=$text%>

Escrito por <%=$post->{author}%>

-
-
-% } -