From 91e756c1b9d23a6afc5470b97f998ad0b73ae638 Mon Sep 17 00:00:00 2001 From: Marcell Mars Date: Sun, 15 Mar 2020 22:00:29 +0100 Subject: [PATCH] let's see if this will work with older hugo... it works with new... --- themes/piratecare/layouts/_default/list.html | 8 ++++---- themes/piratecare/layouts/session/list.html | 14 ++++---------- themes/piratecare/layouts/topic/list.html | 14 ++++---------- themes/piratecare/layouts/topic/single.html | 2 +- 4 files changed, 13 insertions(+), 25 deletions(-) diff --git a/themes/piratecare/layouts/_default/list.html b/themes/piratecare/layouts/_default/list.html index b3c5052..261f11f 100644 --- a/themes/piratecare/layouts/_default/list.html +++ b/themes/piratecare/layouts/_default/list.html @@ -20,11 +20,11 @@
-
diff --git a/themes/piratecare/layouts/session/list.html b/themes/piratecare/layouts/session/list.html index c5015f7..13dfcac 100644 --- a/themes/piratecare/layouts/session/list.html +++ b/themes/piratecare/layouts/session/list.html @@ -1,13 +1,7 @@ {{ define "main" }} - {{ $relpermalink := "" }} - - {{ range .Data.Pages }} - {{ with .Site.Data.myvars.edit }} - {{ $relpermalink = printf "%s%s" "_preview" .RelPermalink}} - {{ else }} - {{ $relpermalink = .RelPermalink }} + + {{ range .Data.Pages }} +
> {{ .Title }}
{{ end }} -
> {{ .Title }}
- {{ end }} -
+
{{ end }} diff --git a/themes/piratecare/layouts/topic/list.html b/themes/piratecare/layouts/topic/list.html index 86448e5..a4cecaa 100644 --- a/themes/piratecare/layouts/topic/list.html +++ b/themes/piratecare/layouts/topic/list.html @@ -1,13 +1,7 @@ {{ define "main" }} - {{ $relpermalink := "" }} - - {{ range .Data.Pages }} - {{ with .Site.Data.myvars.edit }} - {{ $relpermalink = printf "%s%s" "_preview" .RelPermalink}} - {{ else }} - {{ $relpermalink = .RelPermalink }} + + {{ range .Data.Pages }} +
> {{ .Title }}
{{ end }} -
> {{ .Title }}
- {{ end }} -
+
{{ end }} diff --git a/themes/piratecare/layouts/topic/single.html b/themes/piratecare/layouts/topic/single.html index 8860f80..4ae3a8a 100644 --- a/themes/piratecare/layouts/topic/single.html +++ b/themes/piratecare/layouts/topic/single.html @@ -22,7 +22,7 @@