diff --git a/lib/BurguillosInfo/Controller/Page.pm b/lib/BurguillosInfo/Controller/Page.pm index 7784273..c0e2c5e 100644 --- a/lib/BurguillosInfo/Controller/Page.pm +++ b/lib/BurguillosInfo/Controller/Page.pm @@ -120,6 +120,7 @@ sub post { } my $current_category = $categories->{ $post->{category} }; $self->stash(ogimage => 'https://burguillos.info/posts/'.$post->{slug}.'-preview.png'); + $self->stash(useragent => $self->req->headers->user_agent); $self->render( post => $post, current_category => $current_category ); } diff --git a/templates/page/post.html.ep b/templates/page/post.html.ep index c7814f1..8a1dcbd 100644 --- a/templates/page/post.html.ep +++ b/templates/page/post.html.ep @@ -10,7 +10,18 @@ % title $post->{title};
Escrito por <%= $post->{author} %> con fecha <%= $date_article %>.