loviuz-website/layouts/partials/list.html

58 lines
2.1 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 (index (.Params.images) 0) }}
<li>
{{ if $image }}
{{ $image := $image.Resize "x350" }}
{{ $image := $image.Crop "350x350" }}
<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 "01 January 2006" ) }}</span>
{{ if eq .Params.status "new" }}
<span class="new"><i class="fa fa-lightbulb-o animated faa-flash"></i></span>
{{ else if eq .Params.status "wip" }}
<span class="wip"><i class="fa fa-gear animated faa-spin"></i></span>
{{ else if eq .Params.status "done" }}
<span class="completed"><i class="fa fa-check animated faa-pulse"></i></span>
{{ end }}
</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><span class="hashtag">#</span>{{ . }}</li>
{{ end }}
</ul>
{{ end }}
<div style="clear:both;"></div>
</li>
{{ end }}
{{ end }}
</ul>
{{ partial "pagination.html" . }}
</section>