feat(images): display date + add date to an image
This commit is contained in:
parent
7cbd63463b
commit
c4b6950a07
2 changed files with 12 additions and 3 deletions
|
@ -2,6 +2,8 @@
|
|||
title: Dessin de l'entrée de la crypte
|
||||
original_name: Bethleem-pot-crypte.jpg
|
||||
mime_type: image/jpeg
|
||||
author: Alphonse-Georges Poulain
|
||||
inception: 1958
|
||||
imtags:
|
||||
- crypte
|
||||
- entrée-crypte
|
||||
|
|
|
@ -24,8 +24,8 @@
|
|||
<pre>{{ . }}</pre>
|
||||
</div>
|
||||
{{ end }}
|
||||
<div class="single-image__property single-image__date">
|
||||
|
||||
<div class="single-image__property single-image__date">
|
||||
{{ with .Params.inception }}
|
||||
{{/*
|
||||
{{ $dateType := "exact" }}
|
||||
|
@ -46,13 +46,20 @@
|
|||
{{ partial "FormatHistoricalDate.html" . }}
|
||||
{{ end }}
|
||||
*/}}
|
||||
Date du document : {{ partial "FormatHistoricalDate.html" . }}
|
||||
Date : {{ partial "FormatHistoricalDate.html" . }}
|
||||
{{ else }}
|
||||
Pas encore de de date ajouté
|
||||
{{ end }}
|
||||
</div>
|
||||
<div class="single-image__property single-image__author">
|
||||
{{ with .Params.author }}
|
||||
Auteur : {{ . }}
|
||||
{{ else }}
|
||||
Pas encore de d'auteur ajouté
|
||||
{{ end }}
|
||||
</div>
|
||||
<div class="single-image__content">
|
||||
{{ .Content }}
|
||||
{{ .Content }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="single-image__image-container">
|
||||
|
|
Loading…
Reference in a new issue