From 9181371995a019c89040f80c857f3bb0997aa597 Mon Sep 17 00:00:00 2001 From: Marcell Mars Date: Thu, 5 Mar 2020 16:31:20 +0100 Subject: [PATCH] !publish! --- .../_default/_markup/render-image.html | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/themes/piratecare/layouts/_default/_markup/render-image.html b/themes/piratecare/layouts/_default/_markup/render-image.html index 3d6fd53..a1fee09 100644 --- a/themes/piratecare/layouts/_default/_markup/render-image.html +++ b/themes/piratecare/layouts/_default/_markup/render-image.html @@ -13,28 +13,28 @@ {{ $text_link }}⦚bib:{{ $destination }} not found {{ end }} {{ else if strings.HasPrefix .Destination "session:" }} - {{ $destination := (substr .Destination 9) }} - {{ if $.Page.Site.GetPage $destination }} - {{ $session := $.Page.Site.GetPage $destination }} + {{ $s_destination := (substr .Destination 9) }} + {{ if $.Page.Site.GetPage $s_destination }} + {{ $session := $.Page.Site.GetPage $s_destination }} {{ if not $text_link }} - {{ $session.Title }} + {{ $session.Title }} {{ else }} - {{ $text_link }} + {{ $text_link }} {{ end }} {{ else }} - {{ $text_link }}⦚session:{{ $destination }} not found + {{ $text_link }}⦚session:{{ $s_destination }} not found {{ end }} {{ else if strings.HasPrefix .Destination "topic:" }} - {{ $destination := (substr .Destination 6) }} - {{ if $.Page.Site.GetPage $destination }} - {{ $topic := $.Page.Site.GetPage $destination }} + {{ $t_destination := (substr .Destination 6) }} + {{ if $.Page.Site.GetPage $t_destination }} + {{ $topic := $.Page.Site.GetPage $t_destination }} {{ if not $text_link }} - {{ $topic.Title }} + {{ $topic.Title }} {{ else }} - {{ $text_link }} + {{ $text_link }} {{ end }} {{ else }} - {{ $text_link }}⦚topic:{{ $destination }} not found + {{ $text_link }}⦚topic:{{ $t_destination }} not found {{ end }} {{ else if findRE "^.*static" .Destination }} {{ .Text }}