From 0e4e1c8bda4070743e7b7889bb39ea85b3894fb4 Mon Sep 17 00:00:00 2001 From: Alexis BENOIT Date: Thu, 11 Jun 2026 18:00:43 +0200 Subject: [PATCH 01/22] add meta in hero --- layouts/_partials/organizations/single.html | 11 +++++------ layouts/_partials/organizations/single/hero.html | 1 + layouts/_partials/organizations/single/meta.html | 6 ++++++ 3 files changed, 12 insertions(+), 6 deletions(-) create mode 100644 layouts/_partials/organizations/single/meta.html diff --git a/layouts/_partials/organizations/single.html b/layouts/_partials/organizations/single.html index af0180aef..fde239dd2 100644 --- a/layouts/_partials/organizations/single.html +++ b/layouts/_partials/organizations/single.html @@ -2,17 +2,16 @@ {{ partial "organizations/single/pagefind.html" . }}
- {{ partial "toc/container.html" (dict - "context" . - ) }}
{{ partial "organizations/single/summary.html" (dict - "context" . + "context" . ) }} + {{ $meta_position := partial "commons/single/meta/helpers/GetPosition" . }} + {{ if eq $meta_position "content" }} + {{ partial "organizations/single/meta.html" . }} + {{ end }} {{ partial "organizations/single/presentation.html" . }} - {{ partial "taxonomies/single/container.html" . }} - {{ partial "commons/contact-details.html" (dict "subject" .) }}
{{ partial "organizations/partials/logo.html" . }}
diff --git a/layouts/_partials/organizations/single/hero.html b/layouts/_partials/organizations/single/hero.html index eab2e2322..35cee632d 100644 --- a/layouts/_partials/organizations/single/hero.html +++ b/layouts/_partials/organizations/single/hero.html @@ -3,5 +3,6 @@ "title" $title "image" .Params.image "sizes" site.Params.image_sizes.sections.organizations.hero + "meta" ( partial "organizations/single/meta.html" . ) "context" . ) -}} diff --git a/layouts/_partials/organizations/single/meta.html b/layouts/_partials/organizations/single/meta.html new file mode 100644 index 000000000..5f1f0a8ff --- /dev/null +++ b/layouts/_partials/organizations/single/meta.html @@ -0,0 +1,6 @@ +{{ $meta_class := partial "commons/single/meta/helpers/GetMetaClass" . }} + +
+ {{ partial "taxonomies/single/container.html" . }} + {{ partial "commons/contact-details.html" (dict "subject" .) }} +
\ No newline at end of file From ea97ee7e85d019f620d5c9001042eeb1e91ed215 Mon Sep 17 00:00:00 2001 From: Alexis BENOIT Date: Thu, 11 Jun 2026 18:11:49 +0200 Subject: [PATCH 02/22] wip contact in hero --- layouts/_partials/organizations/single.html | 14 +++++++------- layouts/_partials/organizations/single/meta.html | 8 ++++---- .../_partials/organizations/single/summary.html | 2 +- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/layouts/_partials/organizations/single.html b/layouts/_partials/organizations/single.html index fde239dd2..411a28f30 100644 --- a/layouts/_partials/organizations/single.html +++ b/layouts/_partials/organizations/single.html @@ -1,17 +1,17 @@ +{{ $meta_position := partial "commons/single/meta/helpers/GetPosition" . }} + {{ partial "organizations/single/hero.html" . }} {{ partial "organizations/single/pagefind.html" . }}
- {{ partial "organizations/single/summary.html" (dict - "context" . - ) }} - {{ $meta_position := partial "commons/single/meta/helpers/GetPosition" . }} - {{ if eq $meta_position "content" }} - {{ partial "organizations/single/meta.html" . }} - {{ end }} + {{ partial "organizations/single/summary.html" . }} {{ partial "organizations/single/presentation.html" . }} + {{ if and .Params.taxonomies (eq $meta_position "content") }} + {{ partial "taxonomies/single/container.html" . }} + {{ partial "commons/contact-details.html" (dict "subject" .) }} + {{ end }}
{{ partial "organizations/partials/logo.html" . }}
diff --git a/layouts/_partials/organizations/single/meta.html b/layouts/_partials/organizations/single/meta.html index 5f1f0a8ff..e6b062dfe 100644 --- a/layouts/_partials/organizations/single/meta.html +++ b/layouts/_partials/organizations/single/meta.html @@ -1,6 +1,6 @@ {{ $meta_class := partial "commons/single/meta/helpers/GetMetaClass" . }} -
- {{ partial "taxonomies/single/container.html" . }} - {{ partial "commons/contact-details.html" (dict "subject" .) }} -
\ No newline at end of file +
    + {{ partial "commons/single/meta/taxonomies.html" . }} +
+{{ partial "commons/contact-details.html" (dict "subject" .) }} diff --git a/layouts/_partials/organizations/single/summary.html b/layouts/_partials/organizations/single/summary.html index 4f8311694..b5bb68fef 100644 --- a/layouts/_partials/organizations/single/summary.html +++ b/layouts/_partials/organizations/single/summary.html @@ -1 +1 @@ -{{- partial "commons/summary/container.html" . -}} +{{- partial "commons/summary/container.html" (dict "context" .) -}} From 91b7cf5bf9c60d65f2ffcefd6980868fb39f7b4f Mon Sep 17 00:00:00 2001 From: Alexis BENOIT Date: Fri, 12 Jun 2026 11:13:15 +0200 Subject: [PATCH 03/22] cleanup --- assets/sass/_theme/design-system/layout.sass | 2 ++ .../_theme/design-system/single/sidebar.sass | 7 +++++++ assets/sass/_theme/hugo-osuny.sass | 1 + assets/sass/_theme/sections/jobs.sass | 14 -------------- assets/sass/_theme/sections/organizations.sass | 17 ++++------------- assets/sass/_theme/sections/posts.sass | 11 ----------- assets/sass/_theme/sections/projects.sass | 13 ------------- .../_partials/commons/single/meta/contacts.html | 17 +++++++++++++++++ layouts/_partials/organizations/single.html | 9 +++++---- .../_partials/organizations/single/meta.html | 4 ++-- 10 files changed, 38 insertions(+), 57 deletions(-) create mode 100644 assets/sass/_theme/design-system/single/sidebar.sass create mode 100644 layouts/_partials/commons/single/meta/contacts.html diff --git a/assets/sass/_theme/design-system/layout.sass b/assets/sass/_theme/design-system/layout.sass index d84511b05..58da8aeac 100644 --- a/assets/sass/_theme/design-system/layout.sass +++ b/assets/sass/_theme/design-system/layout.sass @@ -79,6 +79,8 @@ ol @include in-page-with-sidebar .heading h2, .block .block-content padding-left: offset(4) + .section-sidebar + margin-top: 0 details &:not([open]):hover diff --git a/assets/sass/_theme/design-system/single/sidebar.sass b/assets/sass/_theme/design-system/single/sidebar.sass new file mode 100644 index 000000000..94c6f47d0 --- /dev/null +++ b/assets/sass/_theme/design-system/single/sidebar.sass @@ -0,0 +1,7 @@ +.section-sidebar + @include in-page-with-sidebar + @include sidebar + @include in-page-without-sidebar + @include aside-full-width + @include media-breakpoint-down(desktop) + @include container diff --git a/assets/sass/_theme/hugo-osuny.sass b/assets/sass/_theme/hugo-osuny.sass index 52708ded1..20c84fbc0 100644 --- a/assets/sass/_theme/hugo-osuny.sass +++ b/assets/sass/_theme/hugo-osuny.sass @@ -43,6 +43,7 @@ @import design-system/offcanvas @import design-system/pagination @import design-system/print +@import design-system/single/sidebar @import design-system/table @import design-system/table_of_contents @import design-system/taxonomies diff --git a/assets/sass/_theme/sections/jobs.sass b/assets/sass/_theme/sections/jobs.sass index fa30ff35c..d2d4a7099 100644 --- a/assets/sass/_theme/sections/jobs.sass +++ b/assets/sass/_theme/sections/jobs.sass @@ -8,17 +8,3 @@ + time &::before content: ' • ' - -// sidebar -.jobs__page - &:not(.full-width) - .section-sidebar - @include sidebar - - &.full-width - .job-sidebar - @include media-breakpoint-down(desktop) - @include container - - @include media-breakpoint-up(desktop) - @include aside-full-width \ No newline at end of file diff --git a/assets/sass/_theme/sections/organizations.sass b/assets/sass/_theme/sections/organizations.sass index b392b5a2e..07a21483a 100644 --- a/assets/sass/_theme/sections/organizations.sass +++ b/assets/sass/_theme/sections/organizations.sass @@ -117,13 +117,6 @@ margin-top: $spacing-4 .organizations__page - .lead - font-family: $lead-sidebar-font-family - font-weight: $lead-sidebar-weight - line-height: $lead-sidebar-line-height - margin-bottom: $spacing-3 - @include media-breakpoint-up(desktop) - font-size: $lead-sidebar-size-desktop .document-content [itemprop="articleBody"] + .organization-logo figcaption @@ -148,6 +141,9 @@ margin-top: 0 &:not(:first-child) margin-top: $spacing-5 + &:not(.full-width) + [itemprop="articleBody"] + padding-left: offset(4) @include media-breakpoint-down(md) .document-content .organization-logo @@ -163,9 +159,4 @@ [itemprop="articleBody"] width: columns(8) + .organization-logo - width: columns(3) - .contacts-details - ul - @include grid(2) - li - margin-top: 0 + width: columns(3) \ No newline at end of file diff --git a/assets/sass/_theme/sections/posts.sass b/assets/sass/_theme/sections/posts.sass index 57c6d75b9..b392358d3 100644 --- a/assets/sass/_theme/sections/posts.sass +++ b/assets/sass/_theme/sections/posts.sass @@ -231,9 +231,6 @@ // Safe spacing if post is empty .document-content @include document-min-height(600px) - &:not(.full-width) - .post-sidebar - @include sidebar .block-signatures .signatures @include list-reset @@ -266,14 +263,6 @@ + li margin-top: $spacing-3 - &.full-width - .post-sidebar - @include media-breakpoint-down(desktop) - @include container - - @include media-breakpoint-up(desktop) - @include aside-full-width - .related margin-top: $spacing-3 .posts diff --git a/assets/sass/_theme/sections/projects.sass b/assets/sass/_theme/sections/projects.sass index 08a197051..7651250a2 100644 --- a/assets/sass/_theme/sections/projects.sass +++ b/assets/sass/_theme/sections/projects.sass @@ -174,19 +174,6 @@ flex-wrap: wrap li white-space: nowrap - - &:not(.full-width) - .project-sidebar - @include sidebar - - &.full-width - .project-sidebar - @include media-breakpoint-down(desktop) - @include container - - @include media-breakpoint-up(desktop) - @include aside-full-width - @include media-breakpoint-up(sm) .hero .project-infos diff --git a/layouts/_partials/commons/single/meta/contacts.html b/layouts/_partials/commons/single/meta/contacts.html new file mode 100644 index 000000000..6e0ec1e6c --- /dev/null +++ b/layouts/_partials/commons/single/meta/contacts.html @@ -0,0 +1,17 @@ +{{ $name := .Title }} +{{ $with_labels := partial "commons/single/meta/helpers/WithLabels" . }} +{{ with .Params.contact_details }} + {{ if or .websites .social_networks .emails .phone_numbers .phone_professional }} + {{ partial "commons/contact-details/links.html" (dict + "context" . + "name" $name + "with_labels" $with_labels + ) }} + {{ end }} + {{ if .postal_address }} + {{ partial "commons/contact-details/address.html" (dict + "postal_address" .postal_address + "with_labels" $with_labels + ) }} + {{ end }} +{{ end }} \ No newline at end of file diff --git a/layouts/_partials/organizations/single.html b/layouts/_partials/organizations/single.html index 411a28f30..d888e08d2 100644 --- a/layouts/_partials/organizations/single.html +++ b/layouts/_partials/organizations/single.html @@ -4,14 +4,15 @@ {{ partial "organizations/single/pagefind.html" . }}
+ {{ partial "posts/single/sidebar.html" . }} +
{{ partial "organizations/single/summary.html" . }} {{ partial "organizations/single/presentation.html" . }} - {{ if and .Params.taxonomies (eq $meta_position "content") }} - {{ partial "taxonomies/single/container.html" . }} - {{ partial "commons/contact-details.html" (dict "subject" .) }} - {{ end }} + {{/* {{ if eq $meta_position "content" }} + {{ partial "organizations/single/meta.html" . }} + {{ end }} */}}
{{ partial "organizations/partials/logo.html" . }}
diff --git a/layouts/_partials/organizations/single/meta.html b/layouts/_partials/organizations/single/meta.html index e6b062dfe..0883f9353 100644 --- a/layouts/_partials/organizations/single/meta.html +++ b/layouts/_partials/organizations/single/meta.html @@ -2,5 +2,5 @@
    {{ partial "commons/single/meta/taxonomies.html" . }} -
-{{ partial "commons/contact-details.html" (dict "subject" .) }} + {{ partial "commons/single/meta/contacts.html" . }} + \ No newline at end of file From 8467dfa7b94242080d0e92c5200ef97382d3ebb3 Mon Sep 17 00:00:00 2001 From: Alexis BENOIT Date: Fri, 12 Jun 2026 11:23:19 +0200 Subject: [PATCH 04/22] refactor and cleanup sidebars --- layouts/_partials/commons/single/sidebar.html | 20 +++++++++++++++++ .../_partials/exhibitions/single/sidebar.html | 17 ++++---------- layouts/_partials/jobs/single/sidebar.html | 21 ++++-------------- layouts/_partials/organizations/single.html | 10 +++------ .../organizations/single/sidebar.html | 4 ++++ layouts/_partials/posts/single/sidebar.html | 22 ++++--------------- .../_partials/projects/single/sidebar.html | 22 ++++--------------- 7 files changed, 43 insertions(+), 73 deletions(-) create mode 100644 layouts/_partials/commons/single/sidebar.html create mode 100644 layouts/_partials/organizations/single/sidebar.html diff --git a/layouts/_partials/commons/single/sidebar.html b/layouts/_partials/commons/single/sidebar.html new file mode 100644 index 000000000..6baa87ada --- /dev/null +++ b/layouts/_partials/commons/single/sidebar.html @@ -0,0 +1,20 @@ +{{ $context := .context }} +{{ $meta_position := partial "commons/single/meta/helpers/GetPosition" $context }} +{{ $meta_in_content := eq $meta_position "content" }} +{{ $type := ( $context.Type | singularize ) }} +{{ $meta := .meta | default (partial "commons/single/meta.html" $context) }} + +{{ if or $context.Params.design.toc.present $meta_in_content }} + +{{ end }} diff --git a/layouts/_partials/exhibitions/single/sidebar.html b/layouts/_partials/exhibitions/single/sidebar.html index ca518107d..67afdaf42 100644 --- a/layouts/_partials/exhibitions/single/sidebar.html +++ b/layouts/_partials/exhibitions/single/sidebar.html @@ -1,14 +1,5 @@ -{{ $meta_position := partial "commons/single/meta/helpers/GetPosition" . }} +{{ partial "commons/single/sidebar.html" (dict + "context" . + "meta" ( partial "events/single/meta.html" . ) +) }} - diff --git a/layouts/_partials/jobs/single/sidebar.html b/layouts/_partials/jobs/single/sidebar.html index 42fbe16e1..de01237d0 100644 --- a/layouts/_partials/jobs/single/sidebar.html +++ b/layouts/_partials/jobs/single/sidebar.html @@ -1,17 +1,4 @@ -{{ $meta_position := partial "commons/single/meta/helpers/GetPosition" . }} -{{ $meta_in_content := eq $meta_position "content" }} - -{{ if or .Params.design.toc.present $meta_in_content }} - -{{ end }} +{{ partial "commons/single/sidebar.html" (dict + "context" . + "meta" ( partial "jobs/single/meta.html" . ) +) }} diff --git a/layouts/_partials/organizations/single.html b/layouts/_partials/organizations/single.html index d888e08d2..1cae12fff 100644 --- a/layouts/_partials/organizations/single.html +++ b/layouts/_partials/organizations/single.html @@ -1,22 +1,18 @@ -{{ $meta_position := partial "commons/single/meta/helpers/GetPosition" . }} - {{ partial "organizations/single/hero.html" . }} {{ partial "organizations/single/pagefind.html" . }}
- {{ partial "posts/single/sidebar.html" . }} - +
{{ partial "organizations/single/summary.html" . }} {{ partial "organizations/single/presentation.html" . }} - {{/* {{ if eq $meta_position "content" }} - {{ partial "organizations/single/meta.html" . }} - {{ end }} */}}
{{ partial "organizations/partials/logo.html" . }}
+ {{ partial "organizations/single/sidebar.html" . }} + {{ partial "contents/list.html" (dict "context" . "contents" .Params.contents diff --git a/layouts/_partials/organizations/single/sidebar.html b/layouts/_partials/organizations/single/sidebar.html new file mode 100644 index 000000000..0221b4f60 --- /dev/null +++ b/layouts/_partials/organizations/single/sidebar.html @@ -0,0 +1,4 @@ +{{ partial "commons/single/sidebar.html" (dict + "context" . + "meta" ( partial "organizations/single/meta.html" . ) +) }} diff --git a/layouts/_partials/posts/single/sidebar.html b/layouts/_partials/posts/single/sidebar.html index 8faed9756..6bf9742ad 100644 --- a/layouts/_partials/posts/single/sidebar.html +++ b/layouts/_partials/posts/single/sidebar.html @@ -1,18 +1,4 @@ -{{ $meta_position := partial "commons/single/meta/helpers/GetPosition" . }} -{{ $meta_in_content := eq $meta_position "content" }} - -{{ if or .Params.design.toc.present $meta_in_content }} - -{{ end }} \ No newline at end of file +{{ partial "commons/single/sidebar.html" (dict + "context" . + "meta" ( partial "posts/single/meta.html" . ) +) }} diff --git a/layouts/_partials/projects/single/sidebar.html b/layouts/_partials/projects/single/sidebar.html index babd93ab3..2dd4f2b44 100644 --- a/layouts/_partials/projects/single/sidebar.html +++ b/layouts/_partials/projects/single/sidebar.html @@ -1,18 +1,4 @@ -{{ $meta_position := partial "commons/single/meta/helpers/GetPosition" . }} -{{ $meta_in_content := eq $meta_position "content" }} - -{{ if or .Params.design.toc.present $meta_in_content }} - -{{ end }} \ No newline at end of file +{{ partial "commons/single/sidebar.html" (dict + "context" . + "meta" ( partial "projects/single/meta.html" . ) +) }} From 82f933ef9cbfa14146404337eea29f39658b77b3 Mon Sep 17 00:00:00 2001 From: Alexis BENOIT Date: Fri, 12 Jun 2026 11:30:42 +0200 Subject: [PATCH 05/22] person wip --- layouts/_partials/commons/single/sidebar.html | 1 + layouts/_partials/persons/single.html | 9 ++------- layouts/_partials/persons/single/sidebar.html | 5 +++++ 3 files changed, 8 insertions(+), 7 deletions(-) create mode 100644 layouts/_partials/persons/single/sidebar.html diff --git a/layouts/_partials/commons/single/sidebar.html b/layouts/_partials/commons/single/sidebar.html index 6baa87ada..40d3600cc 100644 --- a/layouts/_partials/commons/single/sidebar.html +++ b/layouts/_partials/commons/single/sidebar.html @@ -3,6 +3,7 @@ {{ $meta_in_content := eq $meta_position "content" }} {{ $type := ( $context.Type | singularize ) }} {{ $meta := .meta | default (partial "commons/single/meta.html" $context) }} +{{ $toc := .toc }} {{ if or $context.Params.design.toc.present $meta_in_content }}