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 }}