lestoitsduval/layouts/partials/actualite.html

16 lines
553 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 }}
{{ $img := .Fill "460x260" }}
<div class="image"><img src="{{ $img.RelPermalink }}" /></div>
{{ end }}
</div>