From 7f52d9931c245c3f7ed1cb9884d1b319f2536e69 Mon Sep 17 00:00:00 2001 From: sergiotarxz Date: Wed, 3 May 2023 17:23:51 +0200 Subject: [PATCH] Fixing missing preview image. --- templates/page/post.html.ep | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/page/post.html.ep b/templates/page/post.html.ep index 2617f11..3f476a5 100644 --- a/templates/page/post.html.ep +++ b/templates/page/post.html.ep @@ -8,7 +8,8 @@ % my $categories = BurguillosInfo::Categories->new->Retrieve; % my $description_og = '
'.$post->{content}.'
'; % $description_og = Mojo::DOM->new($description_og)->all_text; -% layout 'default', current_category_slug => $current_category->{slug}, categories => $categories, description_og => $description_og; +% my $base_url = config 'base_url'; +% layout 'default', current_category_slug => $current_category->{slug}, categories => $categories, description_og => $description_og, ogimage => "$base_url/posts/$post->{slug}-preview.png"; % title $post->{title};

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