Files
hugo-cwpearson/themes/hugo-academic-master/layouts/partials/widgets/publications_selected.html
Carl Pearson be45676d32 Initial commit
2017-03-12 21:27:57 -05:00

27 lines
820 B
HTML

{{ $ := .root }}
{{ $page := .page }}
<!-- Selected Publications widget -->
<div class="row">
<div class="col-xs-12 col-md-4 section-heading">
<h1>{{ with $page.Title }}{{ . | markdownify }}{{ end }}</h1>
{{ with $page.Params.subtitle }}<p>{{ . | markdownify }}</p>{{ end }}
</div>
<div class="col-xs-12 col-md-8">
{{ with $page.Content }}<p>{{ . | markdownify }}</p>{{ end }}
{{ if $page.Params.detailed_list }}
{{ range (where (where $.Data.Pages "Type" "publication") ".Params.selected" true) }}
{{ partial "publication_li_detailed" . }}
{{ end }}
{{ else }}
<ul class="fa-ul">
{{ range (where (where $.Data.Pages "Type" "publication") ".Params.selected" true) }}
{{ partial "publication_li_simple" . }}
{{ end }}
</ul>
{{ end }}
</div>
</div>