Skip to content

Commit

Permalink
Merge pull request #832 from stokeo/readmorefix-iss831
Browse files Browse the repository at this point in the history
fix issue 831 : read more link on list page stays on the same page
  • Loading branch information
stp-ip authored Oct 15, 2020
2 parents 06699cd + 73ac959 commit 1e51e6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/partials/fragments/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
{{- else -}}
{{- printf " badge-%s" "secondary" -}}
{{- end -}}
" href="{{ .Permalink }}">{{ i18n "content.readmore" | default "Read more..." }}</a>
" href="{{ $page.Permalink }}">{{ i18n "content.readmore" | default "Read more..." }}</a>
{{- end -}}
{{- end -}}
{{- end -}}
Expand All @@ -143,7 +143,7 @@
{{- range $content_page }}
{{- if and (ne $self.Params.read_more false) (or $self.Params.read_more .Truncated) }}
<div class="card-footer">
<a href="{{ .Permalink }}">{{ i18n "content.readmore" | default "Read more..." }}</a>
<a href="{{ $page.Permalink }}">{{ i18n "content.readmore" | default "Read more..." }}</a>
</div>
{{- end -}}
{{- end -}}
Expand Down

0 comments on commit 1e51e6a

Please sign in to comment.