From b699e576f092ab895e6ea1a4f710d07f7977eff5 Mon Sep 17 00:00:00 2001 From: gribse Date: Sun, 12 Oct 2025 19:46:46 +0200 Subject: [PATCH 1/3] edit layout --- layouts/recettes/list.html | 147 +++++++++++++++++++++++++++++++++++++ 1 file changed, 147 insertions(+) create mode 100755 layouts/recettes/list.html diff --git a/layouts/recettes/list.html b/layouts/recettes/list.html new file mode 100755 index 0000000..85fe8db --- /dev/null +++ b/layouts/recettes/list.html @@ -0,0 +1,147 @@ +{{- define "main" }} + +{{- if (and site.Params.profileMode.enabled .IsHome) }} +{{- partial "index_profile.html" . }} +{{- else }} {{/* if not profileMode */}} + +{{- if not .IsHome | and .Title }} + +{{- end }} + + + + +{{- if .Content }} +
+ {{- if not (.Param "disableAnchoredHeadings") }} + {{- partial "anchored_headings.html" .Content -}} + {{- else }}{{ .Content }}{{ end }} +
+{{- end }} + + +
+ {{- range .Pages }} + + + + {{- $isHidden := (.Param "cover.hiddenInList") | default (.Param "cover.hidden") | default false }} + {{- partial "cover.html" (dict "cxt" . "IsSingle" false "isHidden" $isHidden) }} +
+

+ {{ .Title }} +

+
+ + +
+ {{- end }} +
+ + +{{- $pages := union .RegularPages .Sections }} + +{{- if .IsHome }} +{{- $pages = where site.RegularPages "Type" "in" site.Params.mainSections }} +{{- $pages = where $pages "Params.hiddenInHomeList" "!=" "true" }} +{{- end }} + +{{- $paginator := .Paginate $pages }} + +{{- if and .IsHome site.Params.homeInfoParams (eq $paginator.PageNumber 1) }} +{{- partial "home_info.html" . }} +{{- end }} + +{{- $term := .Data.Term }} +{{- range $index, $page := $paginator.Pages }} + +{{- $class := "post-entry" }} + +{{- $user_preferred := or site.Params.disableSpecial1stPost site.Params.homeInfoParams }} +{{- if (and $.IsHome (eq $paginator.PageNumber 1) (eq $index 0) (not $user_preferred)) }} +{{- $class = "first-entry" }} +{{- else if $term }} +{{- $class = "post-entry tag-entry" }} +{{- end }} + + +{{- end }} + +{{- if gt $paginator.TotalPages 1 }} + +{{- end }} + +{{- end }}{{/* end profileMode */}} + +{{- end }}{{- /* end main */ -}} From 186d9428cbe42f8cac2cfb3647ef9527bcfd5d3e Mon Sep 17 00:00:00 2001 From: gribse Date: Sun, 12 Oct 2025 19:46:52 +0200 Subject: [PATCH 2/3] 2 titles --- content/recettes/Burger.md | 1 - 1 file changed, 1 deletion(-) diff --git a/content/recettes/Burger.md b/content/recettes/Burger.md index ad8c2df..13bbb71 100644 --- a/content/recettes/Burger.md +++ b/content/recettes/Burger.md @@ -1,6 +1,5 @@ --- title: 'Burger' -title : 'Burger' maturity: graine date: 2023-10-31T13:23:00 draft: false From 979a57522331720ddd096dfcf21477ca7ad39c9c Mon Sep 17 00:00:00 2001 From: gribse Date: Sun, 12 Oct 2025 19:46:57 +0200 Subject: [PATCH 3/3] cleanup --- layouts/collection/list.html | 147 ------------------------------- layouts/livres/list.html | 163 ----------------------------------- 2 files changed, 310 deletions(-) delete mode 100755 layouts/collection/list.html delete mode 100755 layouts/livres/list.html diff --git a/layouts/collection/list.html b/layouts/collection/list.html deleted file mode 100755 index 85fe8db..0000000 --- a/layouts/collection/list.html +++ /dev/null @@ -1,147 +0,0 @@ -{{- define "main" }} - -{{- if (and site.Params.profileMode.enabled .IsHome) }} -{{- partial "index_profile.html" . }} -{{- else }} {{/* if not profileMode */}} - -{{- if not .IsHome | and .Title }} - -{{- end }} - - - - -{{- if .Content }} -
- {{- if not (.Param "disableAnchoredHeadings") }} - {{- partial "anchored_headings.html" .Content -}} - {{- else }}{{ .Content }}{{ end }} -
-{{- end }} - - - - - -{{- $pages := union .RegularPages .Sections }} - -{{- if .IsHome }} -{{- $pages = where site.RegularPages "Type" "in" site.Params.mainSections }} -{{- $pages = where $pages "Params.hiddenInHomeList" "!=" "true" }} -{{- end }} - -{{- $paginator := .Paginate $pages }} - -{{- if and .IsHome site.Params.homeInfoParams (eq $paginator.PageNumber 1) }} -{{- partial "home_info.html" . }} -{{- end }} - -{{- $term := .Data.Term }} -{{- range $index, $page := $paginator.Pages }} - -{{- $class := "post-entry" }} - -{{- $user_preferred := or site.Params.disableSpecial1stPost site.Params.homeInfoParams }} -{{- if (and $.IsHome (eq $paginator.PageNumber 1) (eq $index 0) (not $user_preferred)) }} -{{- $class = "first-entry" }} -{{- else if $term }} -{{- $class = "post-entry tag-entry" }} -{{- end }} - - -{{- end }} - -{{- if gt $paginator.TotalPages 1 }} - -{{- end }} - -{{- end }}{{/* end profileMode */}} - -{{- end }}{{- /* end main */ -}} diff --git a/layouts/livres/list.html b/layouts/livres/list.html deleted file mode 100755 index 6fba86e..0000000 --- a/layouts/livres/list.html +++ /dev/null @@ -1,163 +0,0 @@ -{{- define "main" }} - -{{- if (and site.Params.profileMode.enabled .IsHome) }} -{{- partial "index_profile.html" . }} -{{- else }} {{/* if not profileMode */}} - -{{- if not .IsHome | and .Title }} - -{{- end }} - - - -{{- if .Content }} -
- {{- if not (.Param "disableAnchoredHeadings") }} - {{- partial "anchored_headings.html" .Content -}} - {{- else }}{{ .Content }}{{ end }} -
-{{- end }} - - - - -{{- $pages := union .RegularPages .Sections }} - -{{- if .IsHome }} -{{- $pages = where site.RegularPages "Type" "in" site.Params.mainSections }} -{{- $pages = where $pages "Params.hiddenInHomeList" "!=" "true" }} -{{- end }} - -{{- $paginator := .Paginate $pages }} - -{{- if and .IsHome site.Params.homeInfoParams (eq $paginator.PageNumber 1) }} -{{- partial "home_info.html" . }} -{{- end }} - -{{- $term := .Data.Term }} -{{- range $index, $page := $paginator.Pages }} - -{{- $class := "post-entry" }} - -{{- $user_preferred := or site.Params.disableSpecial1stPost site.Params.homeInfoParams }} -{{- if (and $.IsHome (eq $paginator.PageNumber 1) (eq $index 0) (not $user_preferred)) }} -{{- $class = "first-entry" }} -{{- else if $term }} -{{- $class = "post-entry tag-entry" }} -{{- end }} - - -{{- end }} - -{{- if gt $paginator.TotalPages 1 }} - -{{- end }} - -{{- end }}{{/* end profileMode */}} - -{{- end }}{{- /* end main */ -}}