!publish! let's try not to be funny in commit messages...

This commit is contained in:
Marcell Mars 2020-03-15 21:18:59 +01:00
parent fb9dc1cd38
commit 65a90cad3c
2 changed files with 14 additions and 14 deletions

View File

@ -1,11 +1,11 @@
{{ define "main" }} {{ define "main" }}
<div class="sidebar-title mb-1 pb-8">▒▒ all sessions:</div> <div class="sidebar-title mb-1 pb-8">▒▒ all sessions:</div>
{{ range .Data.Pages }} {{ range .Data.Pages }}
{{ $relpermalink := "" }}
{{ with .Site.Data.myvars.edit }} {{ with .Site.Data.myvars.edit }}
{{ $relpermalink = "_preview" }} {{ $relpermalink := printf "%s%s" "_preview" .RelPermalink}}
{{ else }}
{{ $relpermalink := .RelPermalink }}
{{ end }} {{ end }}
{{ $relpermalink = printf "%s%s" $relpermalink .RelPermalink }}
<div><a class="sidebar-list text-base" href="{{ $relpermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">> {{ .Title }}</a></div> <div><a class="sidebar-list text-base" href="{{ $relpermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">> {{ .Title }}</a></div>
{{ end }} {{ end }}
<div class="pb-8"></div> <div class="pb-8"></div>

View File

@ -1,11 +1,11 @@
{{ define "main" }} {{ define "main" }}
<div class="sidebar-title mb-1 pb-8">▒▒ all topics:</div> <div class="sidebar-title mb-1 pb-8">▒▒ all topics:</div>
{{ range .Data.Pages }} {{ range .Data.Pages }}
{{ $relpermalink := "" }}
{{ with .Site.Data.myvars.edit }} {{ with .Site.Data.myvars.edit }}
{{ $relpermalink = "_preview" }} {{ $relpermalink := printf "%s%s" "_preview" .RelPermalink}}
{{ else }}
{{ $relpermalink := .RelPermalink }}
{{ end }} {{ end }}
{{ $relpermalink = printf "%s%s" $relpermalink .RelPermalink }}
<div><a class="sidebar-list text-base" href="{{ $relpermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">> {{ .Title }}</a></div> <div><a class="sidebar-list text-base" href="{{ $relpermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">> {{ .Title }}</a></div>
{{ end }} {{ end }}
<div class="pb-8"></div> <div class="pb-8"></div>