From 505b8ed22b38127500169b2464454c71acd236ba Mon Sep 17 00:00:00 2001 From: Marcell Mars Date: Sun, 15 Mar 2020 21:23:17 +0100 Subject: [PATCH] !publish! well... --- themes/piratecare/layouts/session/list.html | 5 +++-- themes/piratecare/layouts/topic/list.html | 19 ++++++++++--------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/themes/piratecare/layouts/session/list.html b/themes/piratecare/layouts/session/list.html index 766b497..c5015f7 100644 --- a/themes/piratecare/layouts/session/list.html +++ b/themes/piratecare/layouts/session/list.html @@ -1,10 +1,11 @@ {{ define "main" }} + {{ $relpermalink := "" }} {{ range .Data.Pages }} {{ with .Site.Data.myvars.edit }} - {{ $relpermalink := printf "%s%s" "_preview" .RelPermalink}} + {{ $relpermalink = printf "%s%s" "_preview" .RelPermalink}} {{ else }} - {{ $relpermalink := .RelPermalink }} + {{ $relpermalink = .RelPermalink }} {{ end }}
> {{ .Title }}
{{ end }} diff --git a/themes/piratecare/layouts/topic/list.html b/themes/piratecare/layouts/topic/list.html index f753cd9..86448e5 100644 --- a/themes/piratecare/layouts/topic/list.html +++ b/themes/piratecare/layouts/topic/list.html @@ -1,12 +1,13 @@ {{ define "main" }} - - {{ range .Data.Pages }} - {{ with .Site.Data.myvars.edit }} - {{ $relpermalink := printf "%s%s" "_preview" .RelPermalink}} - {{ else }} - {{ $relpermalink := .RelPermalink }} - {{ end }} -
> {{ .Title }}
+ {{ $relpermalink := "" }} + + {{ range .Data.Pages }} + {{ with .Site.Data.myvars.edit }} + {{ $relpermalink = printf "%s%s" "_preview" .RelPermalink}} + {{ else }} + {{ $relpermalink = .RelPermalink }} {{ end }} -
+
> {{ .Title }}
+ {{ end }} +
{{ end }}