From 65a90cad3c02fd9489d5da7c9faaed6851c34de8 Mon Sep 17 00:00:00 2001 From: Marcell Mars Date: Sun, 15 Mar 2020 21:18:59 +0100 Subject: [PATCH] !publish! let's try not to be funny in commit messages... --- themes/piratecare/layouts/session/list.html | 16 ++++++++-------- themes/piratecare/layouts/topic/list.html | 12 ++++++------ 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/themes/piratecare/layouts/session/list.html b/themes/piratecare/layouts/session/list.html index e0aa3f1..766b497 100644 --- a/themes/piratecare/layouts/session/list.html +++ b/themes/piratecare/layouts/session/list.html @@ -1,12 +1,12 @@ {{ define "main" }} - + {{ range .Data.Pages }} - {{ $relpermalink := "" }} - {{ with .Site.Data.myvars.edit }} - {{ $relpermalink = "_preview" }} - {{ end }} - {{ $relpermalink = printf "%s%s" $relpermalink .RelPermalink }} -
> {{ .Title }}
+ {{ with .Site.Data.myvars.edit }} + {{ $relpermalink := printf "%s%s" "_preview" .RelPermalink}} + {{ else }} + {{ $relpermalink := .RelPermalink }} {{ end }} -
+
> {{ .Title }}
+ {{ end }} +
{{ end }} diff --git a/themes/piratecare/layouts/topic/list.html b/themes/piratecare/layouts/topic/list.html index 2b85b58..f753cd9 100644 --- a/themes/piratecare/layouts/topic/list.html +++ b/themes/piratecare/layouts/topic/list.html @@ -1,12 +1,12 @@ {{ define "main" }} {{ range .Data.Pages }} - {{ $relpermalink := "" }} - {{ with .Site.Data.myvars.edit }} - {{ $relpermalink = "_preview" }} - {{ end }} - {{ $relpermalink = printf "%s%s" $relpermalink .RelPermalink }} -
> {{ .Title }}
+ {{ with .Site.Data.myvars.edit }} + {{ $relpermalink := printf "%s%s" "_preview" .RelPermalink}} + {{ else }} + {{ $relpermalink := .RelPermalink }} + {{ end }} +
> {{ .Title }}
{{ end }}
{{ end }}