66 lines
2.3 KiB
HTML
66 lines
2.3 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.quick_url }}
|
||
|
<br>
|
||
|
<div class="quick-div">
|
||
|
<span class="icon">🚀</span>
|
||
|
<a class="url" href="{{ .Params.quick_url }}" target="_blank">Accesso rapido</a>
|
||
|
</div>
|
||
|
{{ end }}
|
||
|
|
||
|
{{ 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>
|