Skip to content

Commit 1e51e6a

Browse files
authored
Merge pull request #832 from stokeo/readmorefix-iss831
fix issue 831 : read more link on list page stays on the same page
2 parents 06699cd + 73ac959 commit 1e51e6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

layouts/partials/fragments/list.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
{{- else -}}
129129
{{- printf " badge-%s" "secondary" -}}
130130
{{- end -}}
131-
" href="{{ .Permalink }}">{{ i18n "content.readmore" | default "Read more..." }}</a>
131+
" href="{{ $page.Permalink }}">{{ i18n "content.readmore" | default "Read more..." }}</a>
132132
{{- end -}}
133133
{{- end -}}
134134
{{- end -}}
@@ -143,7 +143,7 @@
143143
{{- range $content_page }}
144144
{{- if and (ne $self.Params.read_more false) (or $self.Params.read_more .Truncated) }}
145145
<div class="card-footer">
146-
<a href="{{ .Permalink }}">{{ i18n "content.readmore" | default "Read more..." }}</a>
146+
<a href="{{ $page.Permalink }}">{{ i18n "content.readmore" | default "Read more..." }}</a>
147147
</div>
148148
{{- end -}}
149149
{{- end -}}

0 commit comments

Comments
 (0)