lestoitsduval/layouts/partials/actualite.html

16 lines
560 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 }}
{{ with .Resources.GetMatch $path }}
2020-05-22 11:13:09 +02:00
{{ $img := .Fill "460x260 center" }}
2020-03-26 18:48:07 +01:00
<div class="image"><img src="{{ $img.RelPermalink }}" /></div>
{{ end }}
</div>