1

Initial commit

This commit is contained in:
2025-03-28 12:57:37 +01:00
commit ed9ddcfdc8
1841 changed files with 42303 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
<header>
{{ $logo := resources.GetMatch "logo-large.png" }}
{{ with $logo.Resize "x120" }}
<img src="{{ .RelPermalink }}" alt="Logo" class="site-logo" />
{{ end }}
<div class="header-content">
<h1 class="page-title">{{ .Title }}</h1>
<div class="page-meta">
{{ with .Date }}
<time datetime="{{ . }}">{{ . | time.Format ":date_long" }}</time>
{{ end }}
{{ $section := "" -}}
{{- with .Parent -}}
{{- $sectionPath := path.Base .File.Dir -}}
{{- $section = $sectionPath -}}
{{- end -}}
<span class="section section-{{ $section }}">{{ .Parent.LinkTitle }}</span>
{{- if ge .ReadingTime 5 -}}
{{- .ReadingTime }} min de lecture
{{- end -}}
</div>
</div>
</header>
<div class="tablet-header">
{{ $logo := resources.GetMatch "logo-large.png" }}
{{ with $logo.Resize "x32" }}
<img src="{{ .RelPermalink }}" alt="Logo réduit" class="tablet-logo" />
{{ end }}
<span class="tablet-title">{{ .Title }}</span>
<div class="tablet-links">
<a href="/" title="Retour à la page d'accueil du site"></a>
{{ if and (.Parent) (ne .Parent.RelPermalink "/") }}
<a href="{{ .Parent.RelPermalink }}" title="Retour à la section parente"></a>
{{ end }}
{{ with .TableOfContents }}
{{ if gt (len (plainify .)) 0 }}
<details id="toc" title="Table des matières">
<summary></summary>
{{ . | safeHTML }}
</details>
{{ end }}
{{ end }}
</div>
</div>