publications_selected.html 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. {{ $ := .root }}
  2. {{ $page := .page }}
  3. {{ $pubs_selected_len := .pubs_selected_len }}
  4. {{ if gt $pubs_selected_len 0 }}
  5. <!-- Selected Publications widget -->
  6. <section id="publications" class="home-section">
  7. <div class="container">
  8. <div class="row">
  9. <div class="col-xs-12 col-md-4 section-heading">
  10. <h1>{{ with $page.Title }}{{ . | markdownify }}{{ end }}</h1>
  11. {{ with $page.Params.subtitle }}<p>{{ . | markdownify }}</p>{{ end }}
  12. </div>
  13. <div class="col-xs-12 col-md-8">
  14. {{ with $page.Content }}<p>{{ . | markdownify }}</p>{{ end }}
  15. {{ if $page.Params.detailed_list }}
  16. {{ range (where (where $.Data.Pages "Type" "publication") ".Params.selected" true) }}
  17. {{ partial "publication_li_detailed" . }}
  18. {{ end }}
  19. {{ else }}
  20. <ul class="fa-ul">
  21. {{ range (where (where $.Data.Pages "Type" "publication") ".Params.selected" true) }}
  22. {{ partial "publication_li_simple" . }}
  23. {{ end }}
  24. </ul>
  25. {{ end }}
  26. </div>
  27. </div>
  28. </div>
  29. </section>
  30. {{ end }}