forked from PirateCare/Syllabus
hopefully ready for the latest hugo on server too...
This commit is contained in:
parent
91e756c1b9
commit
0be76f6a79
|
@ -12,7 +12,7 @@
|
|||
<a href="/library/BROWSE_LIBRARY.html#/book/{{ $destination }}"{{ with .Title}} title="{{ . }}"{{ end }}>{{ $text_link }}⦚<span class="text-xs font-bold p-1 bg-AuChico text-CoconutCream">bib:{{ $destination }} not found</span></a>
|
||||
{{ end }}
|
||||
{{ else if strings.HasPrefix .Destination "session:" }}
|
||||
{{ $s_destination := (substr .Destination 8) }}
|
||||
{{ $s_destination := printf "/session/%s" (substr .Destination 8) }}
|
||||
{{ if $.Page.Site.GetPage $s_destination }}
|
||||
{{ $session := $.Page.Site.GetPage $s_destination }}
|
||||
{{ if not $text_link }}
|
||||
|
@ -24,7 +24,7 @@
|
|||
<a href="/session/{{ $s_destination }}/{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ $text_link }}⦚<span class="text-xs font-bold p-1 bg-AuChico text-CoconutCream">session:{{ $s_destination }} not found</span></a>
|
||||
{{ end }}
|
||||
{{ else if strings.HasPrefix .Destination "topic:" }}
|
||||
{{ $t_destination := (substr .Destination 6) }}
|
||||
{{ $t_destination := printf "/topic/%s" (substr .Destination 6) }}
|
||||
{{ if $.Page.Site.GetPage $t_destination }}
|
||||
{{ $topic := $.Page.Site.GetPage $t_destination }}
|
||||
{{ if not $text_link }}
|
||||
|
|
|
@ -1,7 +1,13 @@
|
|||
{{ define "main" }}
|
||||
<div class="sidebar-title mb-1 pb-8">▒▒ all sessions:</div>
|
||||
{{ range .Data.Pages }}
|
||||
<div><a class="sidebar-list text-base" href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">> {{ .Title }}</a></div>
|
||||
{{ $relpermalink := "" }}
|
||||
<div class="sidebar-title mb-1 pb-8">▒▒ all sessions:</div>
|
||||
{{ range .Data.Pages }}
|
||||
{{ if .Site.Data.myvars.edit }}
|
||||
{{ $relpermalink = printf "%s%s" "/_preview" .RelPermalink }}
|
||||
{{ else }}
|
||||
{{ $relpermalink = .RelPermalink }}
|
||||
{{ end }}
|
||||
<div class="pb-8"></div>
|
||||
<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 }}
|
||||
|
|
|
@ -1,7 +1,13 @@
|
|||
{{ define "main" }}
|
||||
<div class="sidebar-title mb-1 pb-8">▒▒ all topics:</div>
|
||||
{{ $relpermalink := "" }}
|
||||
<div class="sidebar-title mb-1 pb-8">▒▒ all topics:</div>
|
||||
{{ range .Data.Pages }}
|
||||
<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>
|
||||
{{ if .Site.Data.myvars.edit }}
|
||||
{{ $relpermalink = printf "%s%s" "/_preview" .RelPermalink }}
|
||||
{{ else }}
|
||||
{{ $relpermalink = .RelPermalink }}
|
||||
{{ end }}
|
||||
<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