HOD2018_website/themes/HOD2k18/layouts/partials/talk-calendar.html

61 lines
1.9 KiB
HTML
Raw Permalink Normal View History

2018-10-06 19:30:00 +02:00
<!--https://discourse.gohugo.io/t/how-to-use-hugo-template-variables-in-css/4464/13-->
<style>
{{ range .Site.RegularPages }}
#{{ replace .Title " " "_" }}:target > .descrizione-talk{
display:block !important;
margin-bottom:0;
}
#{{ replace .Title " " "_" }}:target > .filler{
margin-bottom: -1em !important;
}
#{{ replace .Title " " "_" }}:target > .filler >.title-wrapper{
border-bottom:5pt solid #000001 !important;
}
{{ end }}
</style>
<section id="calendario">
<ul>
<div id="overflow-scroll">
<h3>Venerdì 09.11</h3>
{{ range sort (where .Site.RegularPages ".Params.giorno" 1) ".Params.orario" "asc"}}
2018-10-06 19:30:00 +02:00
<li id="{{ replace .Title " " "_" }}">
<div class="filler">
<div class="title-wrapper">
2018-10-28 11:13:11 +01:00
<div class="orario"> {{.Params.orario}} </div>
2018-10-06 19:30:00 +02:00
<!--<h4><a class="titolo" href="{{ .Permalink }}">{{ .Title }}</a></h4>-->
<a class="titolo" href="#{{ replace .Title " " "_" }}">
<h4>{{ .Title }}</h4>
</a>
</div>
</div>
<div class="descrizione-talk">
<div>
{{ .Content }}
</div>
2018-10-06 19:30:00 +02:00
</div>
</li>
{{ end }}
<h3>Sabato 10.11</h3>
{{ range sort (where .Site.RegularPages ".Params.giorno" 2) ".Params.orario" "asc"}}
<li id="{{ replace .Title " " "_" }}">
<div class="filler">
<div class="title-wrapper">
<div class="orario"> {{.Params.orario}} </div>
<!--<h4><a class="titolo" href="{{ .Permalink }}">{{ .Title }}</a></h4>-->
<a class="titolo" href="#{{ replace .Title " " "_" }}">
<h4>{{ .Title }}</h4>
</a>
</div>
</div>
<div class="descrizione-talk">
<div>
{{ .Content }}
</div>
</div>
</li>
{{ end }}
2018-10-06 19:30:00 +02:00
</div>
</ul>
</section>