forked from PirateCare/Syllabus
add _privew to the list of sessions/topics...
This commit is contained in:
parent
66596a2845
commit
d54837450b
|
@ -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 }}
|
||||
|
|
|
@ -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 }}
|
||||
|
|
Reference in New Issue