!publish! added is_in for sessions..

This commit is contained in:
Marcell Mars 2020-03-19 02:29:36 +01:00
parent 09af9a85bf
commit 45712a3ce5
3 changed files with 4 additions and 0 deletions

View File

@ -1,6 +1,7 @@
---
title: "Kako pomoći ljudima u kućnoj izolaciji"
images: ["/images/care_curve.jpg"]
is_in: coronanotes
---
Sastavljači: [Pirate Care Syllabus](http://syllabus.pirate.care/). Zadnje izmjene: 14. ožujka, 21h.

View File

@ -1,6 +1,7 @@
---
title: "Bambini/e in quarantena"
images: ["/images/care_curve.jpg"]
is_in: coronanotes
---
# Crisi della domesticità

View File

@ -25,6 +25,8 @@
{{ range (where $.Site.RegularPages ".Section" "topic") }}
{{ if in .Params.has_sessions $currentNode.File.BaseFileName }}
<li><a class="sidebar-list text-base" href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">↖ topic ⦚ {{ .Title }}</a></li>
{{ else if eq $currentNode.Params.is_in .File.BaseFileName }}
<li><a class="sidebar-list text-base" href="{{ .RelPermalink }}{{ if eq hugo.Environment "offline" }}index.html{{ end }}">↖ topic ⦚ {{ .Title }}</a></li>
{{ end }}
{{ end }}
</ul>