From 73ac959bd05d5e605e86372624ebdc19207523ec Mon Sep 17 00:00:00 2001 From: Damien JEGOU Date: Tue, 13 Oct 2020 20:27:30 +0200 Subject: [PATCH] fix issue 831 : read more link on list page stays on the same page instead of going to article page. --- layouts/partials/fragments/list.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/fragments/list.html b/layouts/partials/fragments/list.html index c0d3967c..a5af22c5 100644 --- a/layouts/partials/fragments/list.html +++ b/layouts/partials/fragments/list.html @@ -128,7 +128,7 @@ {{- else -}} {{- printf " badge-%s" "secondary" -}} {{- end -}} - " href="{{ .Permalink }}">{{ i18n "content.readmore" | default "Read more..." }} + " href="{{ $page.Permalink }}">{{ i18n "content.readmore" | default "Read more..." }} {{- end -}} {{- end -}} {{- end -}} @@ -143,7 +143,7 @@ {{- range $content_page }} {{- if and (ne $self.Params.read_more false) (or $self.Params.read_more .Truncated) }} {{- end -}} {{- end -}}