From ccc8b20aca2682c2daf43e9d4d03719dad7978ac Mon Sep 17 00:00:00 2001 From: jk Date: Mon, 27 Jul 2020 19:49:43 +0100 Subject: [PATCH] never mind, will need to work out another time --- themes/nipponalba/layouts/_default/single.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/themes/nipponalba/layouts/_default/single.html b/themes/nipponalba/layouts/_default/single.html index c9903fdf..6ff5e174 100644 --- a/themes/nipponalba/layouts/_default/single.html +++ b/themes/nipponalba/layouts/_default/single.html @@ -30,9 +30,11 @@
{{ if not (eq .Type "article") }}{{ with .Page.Params.category }}Categories: {{ partial "taxonomy/categories.html" . }}{{ end }}{{ end }} -{{ if (fileExists "bridgy.json") }} +{{ $pathJSON := (print .Permalink "bridgy.json") }} +{{ $relpathJSON := (print .RelPermalink "bridgy.json") }} +{{ if fileExists $relpathJSON }} {{ end }}