From c908d7f63c33cf93b9360d2c74e9675d490a6471 Mon Sep 17 00:00:00 2001 From: jk Date: Tue, 23 Jun 2020 20:56:54 +0100 Subject: [PATCH] updating webmention display --- themes/nipponalba/layouts/_default/single.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/nipponalba/layouts/_default/single.html b/themes/nipponalba/layouts/_default/single.html index 400129b3..75a0740c 100644 --- a/themes/nipponalba/layouts/_default/single.html +++ b/themes/nipponalba/layouts/_default/single.html @@ -27,7 +27,7 @@
{{ if not (eq .Type "article") }}{{ with .Page.Params.category }}Categories: {{ partial "taxonomy/categories.html" . }}{{ end }}{{ end }} {{ $pathJSON := (print .Permalink "bridgy.json") }} -{{ $relpathJSON := (print .RelPermalink "bridgy.json") }} +{{ $relpathJSON := (print .Permalink "bridgy.json") }} {{ if fileExists $relpathJSON }}
{{ $mention_ids := index $.Site.Data.index .RelPermalink }} -{{ if isset $mention_ids 1}} +{{ if isset $mention_ids 0}} {{ $mentions := apply $mention_ids "index" $.Site.Data.mentions "." }} {{ $mentions := sort $mentions "wm-received" }}