pages/layouts/academia/list.html

15 lines
494 B
HTML
Raw Normal View History

{{ define "main" }}
<h2>Selected Presentations</h2>
{{ $featuredpubs := where .Pages ".Params.featured" "==" true }}
{{ range $featuredpubs }}
{{ .Scratch.Add "showAbstract" true }}
{{ partial "academia/list-single.html" . }}
{{ end }}
<hr />
<h2>Other Presentations</h2>
{{ $nonfeaturedpubs := where .Pages ".Params.featured" "==" false }}
{{ range $nonfeaturedpubs }}
{{ partial "academia/list-single.html" . }}
{{ end }}
{{ end }}