From 67fad13998de156103b273a4d6df1049aa8e755d Mon Sep 17 00:00:00 2001 From: kbe Date: Thu, 21 Aug 2025 01:47:02 +0200 Subject: [PATCH] I dont remember --- layouts/_default/single.html | 57 +------------ layouts/author/list.html | 126 ++++++++++++++++++---------- layouts/partials/newsletter.html | 13 +++ layouts/partials/related-posts.html | 35 ++++++++ 4 files changed, 131 insertions(+), 100 deletions(-) create mode 100644 layouts/partials/newsletter.html create mode 100644 layouts/partials/related-posts.html diff --git a/layouts/_default/single.html b/layouts/_default/single.html index c23fafd..edfb62b 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -44,67 +44,12 @@
-

{{ .Params.author | default "Auteur" }}

-

Rédacteur technologique & chercheur sur le futur du travail

-

{{ .Params.author_bio | default "Biographie de l'auteur ici." }}

-
- - - -
+ Article rédigé par {{ .Params.author | default "Auteur" }}
- -
-
-

Articles connexes

-
- {{ range first 3 (where .Site.RegularPages "Type" "post") }} -
- {{ if .Params.featured_image }} - Article - {{ else }} - Article - {{ end }} -
- - {{ with .Params.categories }} - {{ range first 1 . }} - {{ . }} - {{ end }} - {{ end }} - -

- {{ .Title }} -

-

{{ .Summary | truncate 100 }}

-
- {{ .Date.Format "2 janvier 2006" }} - - {{ .ReadingTime }} min de lecture -
-
-
- {{ end }} -
-
-
- -
-
-
-

Rejoignez la newsletter

-

Restez informé des dernières actualités sur la technologie et le futur du travail.

-
- - -
-
-
-
{{ end }} diff --git a/layouts/author/list.html b/layouts/author/list.html index cd9bb19..ce1ae81 100644 --- a/layouts/author/list.html +++ b/layouts/author/list.html @@ -1,49 +1,87 @@ {{ define "main" }} -{{ $authors := site.Data.wordpress.authors }} - -
-
-

{{ .Title }}

-

Liste de tous les auteurs

-
-
- -
-
-
-
- {{ range $author := $authors }} -
-
-
-
- {{ with index $author.avatar_urls "96" }} - {{ $author.name }} - {{ else }} - {{ $author.name }} - {{ end }} -
-
-
-
{{ $author.name }}
- {{ with $author.description }} -

- {{ . }} -

- {{ end }} - -
-
+ +
+ + +
+
+
+

Tous les auteurs

-
- {{ end }} -
-
-
+ + + + {{ if .Data.Term }} + {{ $authorSlug := .Data.Term }} + {{ $authors := site.Data.wordpress.authors }} + {{ $author := index $authors $authorSlug }} + + {{ if $author }} +
+
+
+
+
+

{{ $author.name }}

+ {{ with $author.description }} +

{{ . }}

+ {{ end }} +
+
+
+
+
+ {{ end }} + {{ end }} + + +
+
+ {{ $paginator := .Paginate .Pages 9 }} + + {{ if gt (len $paginator.Pages) 0 }} +
+ {{ range $paginator.Pages }} +
+
+
+ {{ if .Params.categories }} + {{ range first 1 .Params.categories }} + {{ . }} + {{ end }} + {{ end }} +
+

{{ .Title }}

+

+ {{ if .Params.excerpt }} + {{ .Params.excerpt }} + {{ else if .Summary }} + {{ .Summary }} + {{ else }} + {{ truncate 200 .Content }} + {{ end }} +

+ +
+
+ {{ end }} +
+ + +
+ {{ if gt .Paginator.TotalPages 1 }} + {{ partial "pagination-tailwind.html" .Paginator }} + {{ end }} +
+ {{ else }} +
+

Aucun article trouvé pour cet auteur.

+
+ {{ end }} +
+
{{ end }} diff --git a/layouts/partials/newsletter.html b/layouts/partials/newsletter.html new file mode 100644 index 0000000..0e6f844 --- /dev/null +++ b/layouts/partials/newsletter.html @@ -0,0 +1,13 @@ + +
+
+
+

Rejoignez la newsletter

+

Restez informé des dernières actualités sur la technologie et le futur du travail.

+
+ + +
+
+
+
diff --git a/layouts/partials/related-posts.html b/layouts/partials/related-posts.html new file mode 100644 index 0000000..25e8f3a --- /dev/null +++ b/layouts/partials/related-posts.html @@ -0,0 +1,35 @@ + +
+
+

Articles connexes

+
+ {{ range first 3 (where .Site.RegularPages "Type" "post") }} +
+ {{ if .Params.featured_image }} + Article + {{ else }} + Article + {{ end }} +
+ + {{ with .Params.categories }} + {{ range first 1 . }} + {{ . }} + {{ end }} + {{ end }} + +

+ {{ .Title }} +

+

{{ .Summary | truncate 100 }}

+
+ {{ .Date.Format "2 janvier 2006" }} + + {{ .ReadingTime }} min de lecture +
+
+
+ {{ end }} +
+
+