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