talk-calendar.html 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <!--https://discourse.gohugo.io/t/how-to-use-hugo-template-variables-in-css/4464/13-->
  2. <style>
  3. {{ range .Site.RegularPages }}
  4. #{{ replace .Title " " "_" }}:target > .descrizione-talk{
  5. display:block !important;
  6. margin-bottom:0;
  7. }
  8. #{{ replace .Title " " "_" }}:target > .filler{
  9. margin-bottom: -1em !important;
  10. }
  11. #{{ replace .Title " " "_" }}:target > .filler >.title-wrapper{
  12. border-bottom:5pt solid #000001 !important;
  13. }
  14. {{ end }}
  15. </style>
  16. <section id="calendario">
  17. <ul>
  18. <div id="overflow-scroll">
  19. <h3>Venerdì 09.11</h3>
  20. {{ range sort (where .Site.RegularPages ".Params.giorno" 1) ".Params.orario" "asc"}}
  21. <li id="{{ replace .Title " " "_" }}">
  22. <div class="filler">
  23. <div class="title-wrapper">
  24. <div class="orario"> {{.Params.orario}} </div>
  25. <!--<h4><a class="titolo" href="{{ .Permalink }}">{{ .Title }}</a></h4>-->
  26. <a class="titolo" href="#{{ replace .Title " " "_" }}">
  27. <h4>{{ .Title }}</h4>
  28. </a>
  29. </div>
  30. </div>
  31. <div class="descrizione-talk">
  32. <div>
  33. {{ .Content }}
  34. </div>
  35. </div>
  36. </li>
  37. {{ end }}
  38. <h3>Sabato 10.11</h3>
  39. {{ range sort (where .Site.RegularPages ".Params.giorno" 2) ".Params.orario" "asc"}}
  40. <li id="{{ replace .Title " " "_" }}">
  41. <div class="filler">
  42. <div class="title-wrapper">
  43. <div class="orario"> {{.Params.orario}} </div>
  44. <!--<h4><a class="titolo" href="{{ .Permalink }}">{{ .Title }}</a></h4>-->
  45. <a class="titolo" href="#{{ replace .Title " " "_" }}">
  46. <h4>{{ .Title }}</h4>
  47. </a>
  48. </div>
  49. </div>
  50. <div class="descrizione-talk">
  51. <div>
  52. {{ .Content }}
  53. </div>
  54. </div>
  55. </li>
  56. {{ end }}
  57. </div>
  58. </ul>
  59. </section>