lestoitsduval/layouts/partials/actualite.html

16 lines
560 B
HTML

<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 center" }}
<div class="image"><img src="{{ $img.RelPermalink }}" /></div>
{{ end }}
</div>