initial commit

This commit is contained in:
2024-11-13 22:26:45 +01:00
commit fd466fc511
156 changed files with 13223 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
{{ $gallery := partial "get-gallery.html" . }}
{{ with $gallery }}
<a class="card" href="{{ .page.RelPermalink }}" title="{{ .page.Title }}">
<figure style="background-color: {{ .color }}">
<img class="lazyload" width="{{ .thumbnail.Width }}" height="{{ .thumbnail.Height }}" data-src="{{ .thumbnail.RelPermalink }}" alt="{{ .page.Title }}" />
</figure>
<div>
<h2>{{ .page.Title }}</h2>
<p>
{{ if gt .albumCount 0 }}
{{ T "albumCount" (dict "count" (.albumCount | lang.FormatNumber 0) "photoCount" (.imageCount | lang.FormatNumber 0 | lang.Translate "photoCount")) }}
{{ else }}
{{ T "photoCount" (.imageCount | lang.FormatNumber 0) }}
{{ end }}
</p>
</div>
</a>
{{ end }}