Files
chill.social/themes/chill-theme/layouts/_default/releases.html
T
boris.waaubandClaude Sonnet 5.5 a314018a87
Build and push chill website image / build (push) Successful in 58s
Add release notes page under Resources
New "Notes de mise à jour" page (fr/en/nl) listing CHILL versions with
open/download links to the release note PDF, and a GitLab technical
notes button. Versions are listed in data/releases.yaml.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 13:54:38 +01:00

54 lines
2.7 KiB
HTML

{{ define "main" }}
<style>
.rl-hero { padding: 9rem 1rem 5rem; text-align: center; background: linear-gradient(180deg, #0d242e 0%, #23627e 100%); color: #fff; }
.rl-hero p { color: #c9dde6; }
.rl-list { max-width: 64rem; margin: 0 auto; }
.rl-entry { display: grid; grid-template-columns: 1fr; gap: 1rem; padding: 3rem 0; border-top: 1px solid #e3e8ea; }
.rl-entry:first-child { border-top: 0; }
@media (min-width: 768px) { .rl-entry { grid-template-columns: 12rem 1fr; gap: 3rem; } }
.rl-version { font-size: 1.5rem; font-weight: 700; color: #0d242e; }
.rl-date { font-size: .875rem; color: #6b7a80; text-transform: capitalize; }
.rl-title { font-size: 1.875rem; font-weight: 700; color: #0d242e; margin-bottom: 1rem; }
.rl-highlights { list-style: none; padding: 0; margin: 0 0 1.75rem; }
.rl-highlights li { position: relative; padding-left: 1.5rem; margin-bottom: .5rem; color: #374151; }
.rl-highlights li::before { content: ""; position: absolute; left: 0; top: .6em; width: .5rem; height: .5rem; border-radius: 9999px; background: #f46839; }
</style>
<section class="rl-hero">
<div class="container mx-auto px-4 text-center">
<h1 style="font-size:3rem;line-height:1.1;font-weight:700;margin-bottom:1.5rem">{{ .Params.title }}</h1>
<p class="text-xl max-w-2xl mx-auto mb-8">{{ .Params.description }}</p>
{{ with .Params.gitlabButton }}
<a href="{{ .url }}" target="_blank" rel="noopener" class="btn btn-primary">{{ .text }}</a>
{{ end }}
</div>
</section>
<section class="container mx-auto px-4" style="padding-top:2rem;padding-bottom:4rem">
<div class="rl-list">
{{ $lang := site.Language.Lang }}
{{ range site.Data.releases }}
<article class="rl-entry">
<div>
<div class="rl-version">{{ .version }}</div>
{{ with .date }}<div class="rl-date">{{ time.AsTime . | time.Format "January 2006" }}</div>{{ end }}
</div>
<div>
<h2 class="rl-title">{{ $.Params.versionLabel }} {{ .version }}</h2>
{{ with index .highlights $lang }}
<ul class="rl-highlights">
{{ range . }}<li>{{ . }}</li>{{ end }}
</ul>
{{ end }}
<div class="flex flex-wrap gap-4">
<a href="{{ .pdf | relURL }}" target="_blank" rel="noopener" class="btn btn-outline">{{ $.Params.openLabel }}</a>
<a href="{{ .pdf | relURL }}" download class="btn btn-primary">{{ i18n "download" }}</a>
</div>
</div>
</article>
{{ end }}
</div>
{{ .Content }}
</section>
{{ end }}