2022-09-29 17:00:28 +00:00
|
|
|
<div class="gallery">
|
|
|
|
<div class="gallery__side">
|
|
|
|
{{ $listtitle := .Title }}
|
|
|
|
{{ if or .Title .Content }}
|
|
|
|
<div>
|
|
|
|
{{ with .Title }}<h1>{{ . }}</h1>{{ end }}
|
|
|
|
{{ with .Content }}<div>{{ . }}</div>{{ end }}
|
2022-09-28 22:29:47 +00:00
|
|
|
</div>
|
2022-09-29 17:00:28 +00:00
|
|
|
{{ end }}
|
2022-10-14 18:56:56 +00:00
|
|
|
<p class="gallery-tags__title">Filtrer par étiquettes :</p>
|
|
|
|
<ul class="gallery-tags__list tags-list">
|
|
|
|
{{- if eq (.Scratch.Get "image_list_context") "imtags" -}}
|
|
|
|
<li class="gallery-tags__item tags-list__item">
|
|
|
|
<a href="/images">Tout</a>
|
|
|
|
</li>
|
|
|
|
{{- end -}}
|
|
|
|
{{- range .Site.Taxonomies.imtags -}}
|
|
|
|
<li class="gallery-tags__item tags-list__item">
|
|
|
|
<a href="{{ .Page.RelPermalink }}">{{ .Page.Title }}</a>
|
|
|
|
</li>
|
|
|
|
{{- end -}}
|
|
|
|
</ul>
|
2022-09-29 17:00:28 +00:00
|
|
|
</div>
|
2022-09-28 22:29:47 +00:00
|
|
|
|
2022-09-29 17:00:28 +00:00
|
|
|
<div class="gallery__items-container">
|
|
|
|
<div class="gallery__items">
|
2022-09-29 15:24:11 +00:00
|
|
|
{{ range $item := (.Paginator 8).Pages }}
|
2022-09-28 22:29:47 +00:00
|
|
|
<a class="gallery__item" href="{{ .RelPermalink }}">
|
|
|
|
{{ $image := .Resources.GetMatch "original.jpg" }}
|
|
|
|
{{ $image := $image.Resize "x350" }}
|
|
|
|
{{ with $image }}
|
|
|
|
<img
|
|
|
|
class="gallery__image"
|
2022-09-29 15:24:11 +00:00
|
|
|
title="{{ $item.Title }}"
|
2022-09-28 22:29:47 +00:00
|
|
|
src="{{ .RelPermalink }}" width="{{ .Width }}" height="{{ .Height }}"
|
|
|
|
/>
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{/*
|
|
|
|
<div class="post-title">
|
|
|
|
{{ if eq $listtitle "Posts" }}
|
|
|
|
{{ .Date.Format "2006-01-02" }} <a href="{{ .RelPermalink }}">{{.Title }}</a>
|
|
|
|
{{ else }}
|
|
|
|
<a href="{{ .RelPermalink }}">{{.Title }}</a>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
*/}}
|
|
|
|
|
|
|
|
</a>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
2022-09-29 17:00:28 +00:00
|
|
|
{{ partial "pagination.html" . }}
|
2022-09-28 22:29:47 +00:00
|
|
|
</div>
|
2022-09-29 17:00:28 +00:00
|
|
|
</div>
|