fix:content/about* add:content/legals*

This commit is contained in:
GZod01 2024-06-06 12:11:20 +02:00
parent 1c7a32b9f4
commit a52134a256
322 changed files with 3252 additions and 2585 deletions

View file

@ -1,36 +0,0 @@
{{ define "main" }}
<div class="cover">
<div class="cover-back"></div>
<div class="cover-container">
<div class="container mx-auto">
<div class="cover-title">
<h1>{{ .Title }}</h1>
</div>
</div>
</div>
</div>
<main class="content container mx-auto">
{{ $listtitle := .Title }}
{{ if or .Title .Content }}
<div>
{{ with .Title }}<h1>{{ . }}</h1>{{ end }}
{{ with .Content }}<div>{{ . }}</div>{{ end }}
</div>
{{ end }}
<ul>
{{ range .Paginator.Pages }}
<li>
<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>
</li>
{{ end }}
</ul>
{{ partial "pagination.html" . }}
</main>
{{ end }}

View file

@ -137,7 +137,7 @@
</div>
{{ range .Site.Data.partners.partners }}
<a href="{{ relLangURL (printf "%s%s" "/partners#" .id) }}" title="{{ .Name }}" class="partner-item link {{ if .class }}{{ .class}}{{ else }}w-1/2 md:w-1/5{{ end }}">
<img src="{{ if .realimg }}{{ .realimg }}{{ else }}https://s.werobot.fr/{{ .img }}{{ end }}"/>
<img src="{{ if .realimg }}{{ .realimg }}{{ else }}/proxyPhotos?code=/{{ .img }}{{ end }}"/>
</a>
{{ end }}

View file

@ -29,7 +29,7 @@
<a class=article href="{{ $article.RelPermalink }}">
<article>
<div
style="background-image:url({{ $article.Params.banner }});"
style="--article-image:url({{ $article.Params.banner }});"
class="article-thumb">
</div>
{{ if (and (eq $index 0) (lt (sub $article.Date.Day time.Now.Day ) 14)) }}

View file

@ -5,7 +5,7 @@
<div class="pt-1 d-flex justify-center">
<contact-card
:phone="['KzMzNjE2', 'NjE3OTQ1']"
avatarUrl="https://s.werobot.fr/profiles/franck.jpg"
avatarUrl="/proxyPhotos?code=/profiles/franck.jpg"
name="Franck GITON"
email="werobot.fr@gmail.com"
/>

View file

@ -0,0 +1,9 @@
<div class="team-mosaic">
{{ range .Site.Data.members.members }}
<div class="team-item">
<div class="team-item-image"><img src="{{ .img|safeURL }}" alt="avatar"></div>
<p class="team-item-title">{{ .name }}</p>
<p class="team-item-description">{{ .post }}</p>
</div>
{{ end }}
</div>

View file

@ -2,7 +2,7 @@
{{ 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 }}https://s.werobot.fr/{{ .img }}{{ end }}">
<img src="{{ if .realimg }}{{ .realimg }}{{ else }}/proxyPhotos?code=/{{ .img }}{{ end }}">
</a>
<div class="w-full md:w-2/3">
{{ .description | safeHTML }}