feat(gallery): add historical date parsing
feat: add logo file
This commit is contained in:
parent
b5785c8218
commit
bb43b2bc9d
9 changed files with 124 additions and 18 deletions
|
|
@ -6,20 +6,48 @@
|
|||
<h1>{{ .Title }}</h1>
|
||||
<div class="single-image__property single-image__tags">
|
||||
<div class="property-name">Étiquettes associées à l'image :</div>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-tags" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
||||
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
|
||||
<path d="M7.859 6h-2.834a2.025 2.025 0 0 0 -2.025 2.025v2.834c0 .537 .213 1.052 .593 1.432l6.116 6.116a2.025 2.025 0 0 0 2.864 0l2.834 -2.834a2.025 2.025 0 0 0 0 -2.864l-6.117 -6.116a2.025 2.025 0 0 0 -1.431 -.593z" />
|
||||
<path d="M17.573 18.407l2.834 -2.834a2.025 2.025 0 0 0 0 -2.864l-7.117 -7.116" />
|
||||
<path d="M6 9h-.01" />
|
||||
</svg>
|
||||
<ul>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-tags" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
||||
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
|
||||
<path d="M7.859 6h-2.834a2.025 2.025 0 0 0 -2.025 2.025v2.834c0 .537 .213 1.052 .593 1.432l6.116 6.116a2.025 2.025 0 0 0 2.864 0l2.834 -2.834a2.025 2.025 0 0 0 0 -2.864l-6.117 -6.116a2.025 2.025 0 0 0 -1.431 -.593z" />
|
||||
<path d="M17.573 18.407l2.834 -2.834a2.025 2.025 0 0 0 0 -2.864l-7.117 -7.116" />
|
||||
<path d="M6 9h-.01" />
|
||||
</svg>
|
||||
{{ range .Params.imtags }}
|
||||
<li><a href="/tag_images/{{ . | urlize }}">{{ . }}</a></li>
|
||||
<li><a href="/imtags/{{ . | urlize }}">{{ . }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
<div class="single-image__property single-image__original-name">
|
||||
<div class="property-name">Nom original :</div><pre>{{ .Params.original_name }}</pre>
|
||||
<div class="property-name">Nom original :</div>
|
||||
<pre>{{ .Params.original_name }}</pre>
|
||||
</div>
|
||||
<div class="single-image__property single-image__date">
|
||||
|
||||
{{ with .Params.inception }}
|
||||
{{/*
|
||||
{{ $dateType := "exact" }}
|
||||
{{ $date := "" }}
|
||||
{{ $dateFrom := "" }}
|
||||
{{ $dateTo := "" }}
|
||||
{{ $datePrecision := "" }}
|
||||
{{ if reflect.IsMap . }}
|
||||
{{ $dateType = "range" }}
|
||||
{{ $dateFrom = .from }}
|
||||
{{ $dateTo = .to }}
|
||||
{{ else }}
|
||||
{{ $date = . }}
|
||||
{{ end }}
|
||||
{{ if eq $dateType "range" }}
|
||||
Document daté entre le {{ .from }} et {{ .to }}
|
||||
{{ else }}
|
||||
{{ partial "FormatHistoricalDate.html" . }}
|
||||
{{ end }}
|
||||
*/}}
|
||||
Date du document : {{ partial "FormatHistoricalDate.html" . }}
|
||||
{{ else }}
|
||||
Pas encore de de date ajouté
|
||||
{{ end }}
|
||||
</div>
|
||||
<div class="single-image__content">
|
||||
{{ .Content }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue