lestoitsduval/layouts/partials/actualite.html

17 lines
647 B
HTML
Raw Normal View History

2020-03-26 18:48:07 +01:00
<div class="cell -6of12">
<a href="{{ .Permalink }}" class="grid -middle">
<div class="info grid -middle -center">
<div>
<h3 class="cell -middle">{{ .Title }}</h3>
<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Day }} {{ index $.Site.Data.mois (printf "%d" .Date.Month) }} {{ .Date.Year }}</time>
</div>
</div>
</a>
{{ $path := .Params.image }}
2021-04-27 16:38:54 +02:00
{{ $credit := .Params.image_credit }}
2020-03-26 18:48:07 +01:00
{{ with .Resources.GetMatch $path }}
2020-05-22 11:13:09 +02:00
{{ $img := .Fill "460x260 center" }}
2021-04-27 16:38:54 +02:00
<div class="image"><img src="{{ $img.RelPermalink }}"{{ with $credit }} alt="{{ $credit }}"{{ end }} /></div>
2020-03-26 18:48:07 +01:00
{{ end }}
</div>