has_sessions was hardcoded. no good.
This commit is contained in:
parent
6b345bfa41
commit
07549ecf34
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue