First version
This commit is contained in:
@ -1,8 +1,35 @@
|
||||
{{ define "main" }}
|
||||
{{ $path := .Params.image }}
|
||||
{{ with .Resources.GetMatch $path }}
|
||||
{{ $img := .Fill "460x260" }}
|
||||
<div class="actu-image"><div><img src="{{ $img.RelPermalink }}" /></div></div>
|
||||
{{ end }}
|
||||
{{ .Content }}
|
||||
<div class="container small">
|
||||
{{ $path := .Params.image }}
|
||||
{{ with .Resources.GetMatch $path }}
|
||||
{{ $img := .Fill "680x382 center" }}
|
||||
<img class="actu-image" src="{{ $img.RelPermalink }}" />
|
||||
{{ end }}
|
||||
{{ .Content }}
|
||||
<hr>
|
||||
<h3 class="txt-center">Articles précédents et suivants</h3>
|
||||
</div>
|
||||
<div class="container">
|
||||
<aside class="grid actualites -middle">
|
||||
{{ with .NextInSection }}
|
||||
{{ partial "actualite" . }}
|
||||
{{else}}
|
||||
<div class="cell -6of12 empty">
|
||||
<div class="info grid -middle -center">
|
||||
Vous lisez l'article le plus récent
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ with .PrevInSection }}
|
||||
{{ partial "actualite" . }}
|
||||
{{else}}
|
||||
<div class="cell -6of12 empty">
|
||||
<div class="info grid -middle -center">
|
||||
Vous lisez l'article le plus ancien
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</aside>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
Reference in New Issue
Block a user