diff --git a/layouts/partials/post-previews.html b/layouts/partials/post-previews.html index 3b9c9e3d..e66f929b 100644 --- a/layouts/partials/post-previews.html +++ b/layouts/partials/post-previews.html @@ -68,7 +68,16 @@ {{- end -}} - {{- $notePage := index (where .Site.RegularPages "Section" "eq" "notes") 0 -}} + {{- $notePages := where .Site.RegularPages "Section" "eq" "notes" -}} + {{- $notePage := index $notePages 0 -}} + {{- if $notePage.Params.inReplyTo -}} + {{- range $notePages -}} + {{- if not .Params.inReplyTo -}} + {{- $notePage = . -}} + {{- break -}} + {{- end -}} + {{- end -}} + {{- end -}} {{- with $notePage -}}