This commit is contained in:
GZod01 2024-11-10 15:24:45 +01:00
parent 4661584591
commit fbbb549f6e
3 changed files with 20 additions and 4 deletions

View file

@ -1,23 +1,31 @@
<div class=partners>
<h2>{{ if (eq .Lang "en") }}They support us regularly:{{ else }}Ils nous soutiennent régulièrement:{{ end }}</h2>
<h2>{{ if (eq .Page.Lang "en") }}
They support us regularly:
{{ else }}
Ils nous soutiennent régulièrement:
{{ end }}</h2>
{{ range .Site.Data.partners.partners }}
<div id="{{ .id }}" class="partner flex flex-wrap">
<a href="{{ .url | safeURL }}" title="{{ .Name }}" class="w-full md:w-1/3 partner-image">
<img src="{{ if .realimg }}{{ .realimg }}{{ else }}/proxyPhotos?code=/{{ .img }}{{ end }}">
</a>
<div class="w-full md:w-2/3">
{{ if (and .descriptionen (eq .Lang "en")) }}{{ .descriptionen | safeHTML }}{{ else }}{{ .description | safeHTML}}{{ end }}
{{ if (and .descriptionen (eq .Page.Lang "en")) }}{{ .descriptionen | safeHTML }}{{ else }}{{ .description | safeHTML}}{{ end }}
</div>
</div>
{{ end }}
<h2>{{ if (eq .Lang "en") }}They supported us:{{ else }}Ils nous ont soutenus:{{ end }}</h2>
<h2>{{ if (eq .Page.Lang "en") }}
They supported us:
{{ else }}
Ils nous ont soutenus:
{{ end }}</h2>
{{ range .Site.Data.partners.old }}
<div id="{{ .id }}" class="partner flex flex-wrap">
<a href="{{ .url | safeURL }}" title="{{ .Name }}" class="w-full md:w-1/3 partner-image">
<img src="{{ if .realimg }}{{ .realimg }}{{ else }}/proxyPhotos?code=/{{ .img }}{{ end }}">
</a>
<div class="w-full md:w-2/3">
{{ if (and .descriptionen (eq .Lang "en")) }}{{ .descriptionen | safeHTML }}{{ else }}{{ .description | safeHTML}}{{ end }
{{ if (and .descriptionen (eq .Lang "en")) }}{{ .descriptionen | safeHTML }}{{ else }}{{ .description | safeHTML}}{{ end }}
</div>
</div>
{{ end }}