No more resources

This commit is contained in:
echarp 2022-11-11 10:04:57 +01:00
parent 84bc5176af
commit 16a7d81535

View File

@ -35,14 +35,18 @@
{{ end }} {{ end }}
{{- template "_internal/pagination.html" . -}} {{- template "_internal/pagination.html" . -}}
{{ if .Parent.IsHome }}
{{ range .Resources }} {{ range .Resources }}
<div class="relative w-100 w-30-l mb4 bg-white"> <div class="relative w-100 w-30-l mb4 bg-white">
<img src="{{ .RelPermalink }}" title="{{.}}" alt="{{.}}" /> <img src="{{ .RelPermalink }}" title="{{.}}" alt="{{.}}" />
{{ . }} {{ . }}
<button class="delete_image br-pill pa3 pointer" data-target="{{.RelPermalink}}">{{ T (print $.Section ".delete") }}</button> <button class="delete_image br-pill pa3 pointer" data-target="{{.RelPermalink}}">
{{ T (print $.Section ".delete") }}
</button>
</div> </div>
{{ end }}
{{ end }}
{{ end }}
</section> </section>
{{ end }}
{{ end }}
</article> </article>
{{ end }} {{ end }}