hugo-theme-zzo/layouts/partials/publication/pub-list.html

36 lines
998 B
HTML

<div class="pub__list">
{{ $paginator := .Paginate (where .Pages "Type" .Type) ($.Param "pubPaginate") }}
<ul class="pub__ul" data-display="block">
{{ range $paginator.Pages }}
<li class="pub__item">
<a href="{{ .Permalink }}">
{{ .Title }}
{{ with .Params.shorttitle }}
<span class="p2">
- {{ . }}
</span>
{{ end }}
{{ with .Params.booktitle }}
<span class="p2">
- {{ . }}
</span>
{{ end }}
</a>
{{ if not .IsNode }}
<div class="pub__metas">
{{ partial "publication/pub-meta" . }}
{{ partial "publication/pub-tags" . }}
</div>
<div class="pub__summary">
{{ .Params.abstract }}
</div>
{{ else }}
<div class="pub__summary">
{{ .Params.description | markdownify }}
</div>
{{ end }}
</li>
{{ end }}
</ul>
{{ partial "publication/pub-search-result" . }}
</div>