add _privew to the list of sessions/topics...
This commit is contained in:
parent
66596a2845
commit
d54837450b
|
@ -1,8 +1,12 @@
|
||||||
{{ 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>
|
||||||
<ul class="pb-8">
|
{{ range .Data.Pages }}
|
||||||
{{ range .Data.Pages }}
|
{{ $relpermalink := "" }}
|
||||||
<li><a class="sidebar-list text-base" href="{{ .Permalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">> {{ .Title }}</a></li>
|
{{ 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 }}
|
{{ end }}
|
||||||
</ul>
|
<div class="pb-8"></div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -1,8 +1,12 @@
|
||||||
{{ 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>
|
||||||
<ul class="pb-8">
|
|
||||||
{{ range .Data.Pages }}
|
{{ 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 }}
|
{{ 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 }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in New Issue