has_sessions was hardcoded. no good.

This commit is contained in:
Marcell Mars 2020-09-12 03:09:31 +02:00
parent 6b345bfa41
commit 07549ecf34
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@
{{ end }}
{{ if eq ($.Scratch.Get "depth") "crust" }}
{{ range first 1 (where (where $.Site.RegularPages ".Section" ($.Scratch.Get "mantle")) ".Params.has_sessions" "intersect" (slice $currentSession.File.LogicalName)) }}
{{ range first 1 (where (where $.Site.RegularPages ".Section" ($.Scratch.Get "mantle")) (printf ".Params.has_%s" ($.Scratch.Get "mantle_has")) "intersect" (slice $currentSession.File.LogicalName)) }}
<span><i> » <a href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ .Title }}</a></i></span>
{{ end }}
<span class="mantlebar"><i> » <a href="{{ $currentSession.RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">{{ $currentSession.Title }}</a></i></span>