From e13871dafd53af58662c3c215a9714b6468956d7 Mon Sep 17 00:00:00 2001 From: Olivia206 <olivia.simonet@mmibordeaux.com> Date: Mon, 8 Jan 2024 15:29:43 +0100 Subject: [PATCH] fixed posts block link --- layouts/partials/blocks/templates/posts.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/layouts/partials/blocks/templates/posts.html b/layouts/partials/blocks/templates/posts.html index 397f46eb..c8b0fb9c 100644 --- a/layouts/partials/blocks/templates/posts.html +++ b/layouts/partials/blocks/templates/posts.html @@ -11,18 +11,18 @@ <div class="container"> <div class="block-content"> {{ if $block.title -}} - {{ $posts_page_link := false }} + {{ $link := false }} {{- if $term }} - {{ $posts_page_link = $term.Permalink }} + {{ $link = $term.Permalink }} {{- else if .all -}} {{ $posts_page := site.GetPage "/posts" }} - {{ $posts_page_link = $posts_page.Permalink }} + {{ $link = $posts_page.Permalink }} {{- end -}} {{ partial "blocks/top.html" (dict "title" $block.title "heading_level" $block.ranks.self - "link" $posts_page_link + "link" $link )}} {{- end }} -- GitLab