forked from PirateCare/Syllabus
!publish! let's try not to be funny in commit messages...
This commit is contained in:
parent
fb9dc1cd38
commit
65a90cad3c
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Reference in New Issue