feat: translate the site in french

This commit is contained in:
Bruno Carlin 2025-06-20 02:33:45 +02:00
parent 3e98ac15b6
commit b47b193b20
Signed by: bcarlin
GPG key ID: 8E254EA0FFEB9B6D
81 changed files with 1327 additions and 251 deletions

View file

@ -0,0 +1,11 @@
{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
{{ $dateHuman := .Date | time.Format ":date_short" }}
<article class="h-entry">
<p>
<a class="u-url p-name" href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
(<time class="dt-published" datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>)
</p>
<p class="p-summary">
{{ .Summary }}
</p>
</article>

19
layouts/blog/list.html Normal file
View file

@ -0,0 +1,19 @@
{{ define "main" }}
<article class="h-feed">
<header>
<h1 class="p-name">{{ .Title }}</h1>
</header>
{{ .Content }}
{{ range .Site.RegularPages.GroupByDate "2006" }}
<section>
<h2>{{ .Key }}</h2>
{{- range .Pages }}
{{ .Render "list-item" }}
{{- end }}
</section>
{{- end }}
</article>
{{ end }}

30
layouts/blog/single.html Normal file
View file

@ -0,0 +1,30 @@
{{ define "main" }}
{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
{{ $dateHuman := .Date | time.Format ":date_short" }}
<article class="h-entry">
<header>
{{ with .GetTerms "categories" }}
<p class="category">
{{ range . }}
<a class="p-category" rel="tag" href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
{{ break }}
{{ end }}
</p>
{{ end }}
<h1 class="p-name">
{{ .Title }}
</h1>
<div class="metadata">
<p>
{{ T "posted" }}
<time class="dt-published" datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
</p>
{{ partial "tags.html" . }}
</div>
</header>
<section class="e-content">
{{ .Content }}
</section>
</article>
{{ end }}