Syllabus/themes/piratecare/layouts/topic/list.html

14 lines
528 B
HTML
Raw Normal View History

2020-03-05 04:10:52 +00:00
{{ define "main" }}
{{ $relpermalink := "" }}
<div class="sidebar-title mb-1 pb-8">▒▒ all topics:</div>
{{ range .Data.Pages }}
{{ 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>
2020-03-05 04:10:52 +00:00
{{ end }}