2022-09-28 20:49:59 +00:00
|
|
|
{{ define "main" }}
|
2022-09-29 17:00:28 +00:00
|
|
|
<main class="page-full">
|
2022-09-28 20:49:59 +00:00
|
|
|
<article class="single-image">
|
|
|
|
<!-- <b><time>{{ .Date.Format (default "2006-01-02 15:04:05" .Site.Params.dateFmt) }}</time></b> -->
|
|
|
|
<div class="single-image__side">
|
|
|
|
<h1>{{ .Title }}</h1>
|
|
|
|
<div class="single-image__property single-image__tags">
|
|
|
|
<div class="property-name">Étiquettes associées à l'image :</div>
|
2022-10-14 18:56:56 +00:00
|
|
|
<ul class="tags-list">
|
2022-09-29 15:24:11 +00:00
|
|
|
<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>
|
2022-09-28 22:29:47 +00:00
|
|
|
{{ range .Params.imtags }}
|
2022-10-14 18:56:56 +00:00
|
|
|
<li class="tags-list__item"><a href="/imtags/{{ . | urlize }}">{{ . }}</a></li>
|
2022-09-28 20:49:59 +00:00
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
</div>
|
2022-09-29 17:00:28 +00:00
|
|
|
{{ with .Params.original_name }}
|
2022-09-28 20:49:59 +00:00
|
|
|
<div class="single-image__property single-image__original-name">
|
2022-09-29 15:24:11 +00:00
|
|
|
<div class="property-name">Nom original :</div>
|
2022-09-29 17:00:28 +00:00
|
|
|
<pre>{{ . }}</pre>
|
2022-09-29 15:24:11 +00:00
|
|
|
</div>
|
2022-09-29 17:00:28 +00:00
|
|
|
{{ end }}
|
2024-03-15 10:14:50 +00:00
|
|
|
|
2022-09-29 15:24:11 +00:00
|
|
|
<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 }}
|
|
|
|
*/}}
|
2024-03-15 10:14:50 +00:00
|
|
|
Date : {{ partial "FormatHistoricalDate.html" . }}
|
2022-09-29 15:24:11 +00:00
|
|
|
{{ else }}
|
|
|
|
Pas encore de de date ajouté
|
|
|
|
{{ end }}
|
2022-09-28 20:49:59 +00:00
|
|
|
</div>
|
2024-03-15 10:14:50 +00:00
|
|
|
<div class="single-image__property single-image__author">
|
|
|
|
{{ with .Params.author }}
|
|
|
|
Auteur : {{ . }}
|
|
|
|
{{ else }}
|
|
|
|
Pas encore de d'auteur ajouté
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
2022-09-28 20:49:59 +00:00
|
|
|
<div class="single-image__content">
|
2024-03-15 10:14:50 +00:00
|
|
|
{{ .Content }}
|
2022-09-28 20:49:59 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="single-image__image-container">
|
|
|
|
{{ $image := .Resources.GetMatch "original.jpg" }}
|
|
|
|
{{ with $image }}
|
|
|
|
<img
|
|
|
|
class="single-image__image"
|
|
|
|
src="{{ .RelPermalink }}" width="{{ .Width }}" height="{{ .Height }}"
|
|
|
|
/>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</article>
|
|
|
|
{{ if or .Next .Prev -}}
|
|
|
|
<div class="gallery__nextprev">
|
|
|
|
{{- with .Prev }}
|
2022-09-29 17:00:28 +00:00
|
|
|
<a href="{{ .RelPermalink}}"><div id="prevart">Précédente</div></a>
|
2022-09-28 20:49:59 +00:00
|
|
|
{{ end -}}
|
|
|
|
{{- with .Next -}}
|
2022-09-29 17:00:28 +00:00
|
|
|
<a href="{{ .RelPermalink}}"><div id="nextart">Suivante</div></a>
|
2022-09-28 20:49:59 +00:00
|
|
|
{{ end -}}
|
|
|
|
</div>
|
|
|
|
{{ end -}}
|
|
|
|
|
|
|
|
</main>
|
|
|
|
{{ end }}
|