Fixing sitemap urls.

This commit is contained in:
sergiotarxz 2023-05-10 20:21:49 +02:00
parent b3e96df1f1
commit 4338131062

View File

@ -83,7 +83,7 @@ sub _generate_url_for_post ( $self, $post ) {
my $final_date_last_modification_post =
_compare_dates_return_most_recent( $date, $date_last_modification_post );
my $base_url = $self->config('base_url');
my $url_resource = "$base_url/@{[$post->{slug}]}";
my $url_resource = "$base_url/posts/@{[$post->{slug}]}";
my $last_modification_tag =
Mojo::DOM->new_tag( lastmod => $final_date_last_modification_post );
my $location_tag = Mojo::DOM->new_tag( loc => $url_resource );