pages/layouts/academia/list.html

14 lines
464 B
HTML

{{ define "main" }}
<h2>Selected Presentations</h2>
{{ $featuredpubs := where .Pages ".Params.featured" "==" true }}
{{ range $featuredpubs }}
{{ .Scratch.Set "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 }}