From c7109f7d27dc62e561b005e75b63a62acbb731a3 Mon Sep 17 00:00:00 2001 From: Marcell Mars Date: Mon, 16 Mar 2020 01:16:32 +0100 Subject: [PATCH] hahaha.. --- themes/piratecare/layouts/session/list.html | 6 ------ themes/piratecare/layouts/topic/list.html | 6 ------ 2 files changed, 12 deletions(-) diff --git a/themes/piratecare/layouts/session/list.html b/themes/piratecare/layouts/session/list.html index 9a7c958..147e5d0 100644 --- a/themes/piratecare/layouts/session/list.html +++ b/themes/piratecare/layouts/session/list.html @@ -1,12 +1,6 @@ {{ define "main" }} - {{ $relpermalink := "" }} {{ range .Data.Pages }} - {{ if .Site.Data.myvars.edit }} - {{ $relpermalink = printf "%s%s" "/_preview" .RelPermalink }} - {{ else }} - {{ $relpermalink = .RelPermalink }} - {{ end }}
> {{ .Title }}
{{ end }}
diff --git a/themes/piratecare/layouts/topic/list.html b/themes/piratecare/layouts/topic/list.html index e242875..12f47a4 100644 --- a/themes/piratecare/layouts/topic/list.html +++ b/themes/piratecare/layouts/topic/list.html @@ -1,12 +1,6 @@ {{ define "main" }} - {{ $relpermalink := "" }} {{ range .Data.Pages }} - {{ if .Site.Data.myvars.edit }} - {{ $relpermalink = printf "%s%s" "/_preview" .RelPermalink }} - {{ else }} - {{ $relpermalink = .RelPermalink }} - {{ end }}
> {{ .Title }}
{{ end }}