add _privew to the list of sessions/topics...

This commit is contained in:
Marcell Mars 2020-03-15 21:04:28 +01:00
parent 66596a2845
commit d54837450b
2 changed files with 17 additions and 9 deletions

View File

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

View File

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