loviuz-website/layouts/partials/list.html

51 lines
1.6 KiB
HTML

<section class="container list">
<h1 class="title">
<a class="title-link" href="{{ .Permalink | safeURL }}">
{{- if eq .Kind "term" -}}
{{- i18n .Data.Plural 1 | title -}}
{{- print ": " -}}
{{- end -}}
{{- i18n (lower .Title) | default .Title | title -}}
</a>
</h1>
{{ .Content }}
<ul class="projects-list">
{{ range .Paginator.Pages }}
{{ $image := .Resources.GetMatch .Params.image }}
{{ $image := $image.Resize "x350" }}
{{ $image := $image.Crop "350x350" }}
{{ if $image }}
<li>
<div class="project-image">
<a href="{{ .Params.externalLink | default .RelPermalink }}">
<img src="{{ $image.RelPermalink }}">
</a>
<span class="date">{{ .Date | time.Format (.Site.Params.dateFormat | default "January 2006" ) }}</span>
</div>
{{ if .Params.obiettivo_percent }}
<div class="progress">
<div class="progress-bar" style="width:{{ .Params.obiettivo_percent }}%;"></div>
</div>
{{ end }}
<br>
<a class="title" href="{{ .Params.externalLink | default .RelPermalink }}">{{ .Title }}</a>
<br>
<span class="description">{{ .Params.description }}</span>
{{ if .Params.tags }}
<ul class="tags">
{{ range .Params.tags }}
<li>#{{ . }}</li>
{{ end }}
</ul>
{{ end }}
<div style="clear:both;"></div>
</li>
{{ end }}
{{ end }}
</ul>
{{ partial "pagination.html" . }}
</section>