From d5c014de03dc82a8f21b90f879a302ea9e55932a Mon Sep 17 00:00:00 2001
From: alexisben <alex@noesya.coop>
Date: Thu, 4 Apr 2024 09:55:55 +0200
Subject: [PATCH] cleanup

---
 layouts/locations/list.html                  |  1 -
 layouts/partials/locations/hero-list.html    |  2 +-
 layouts/partials/locations/hero-single.html  | 17 ++++++-----------
 layouts/partials/locations/sidebar.html      | 14 --------------
 layouts/partials/locations/summary copy.html |  1 -
 5 files changed, 7 insertions(+), 28 deletions(-)
 delete mode 100644 layouts/partials/locations/sidebar.html
 delete mode 100644 layouts/partials/locations/summary copy.html

diff --git a/layouts/locations/list.html b/layouts/locations/list.html
index 7ca761d6..0ea776a6 100644
--- a/layouts/locations/list.html
+++ b/layouts/locations/list.html
@@ -2,7 +2,6 @@
   {{ partial "locations/hero-list.html" . }}
 
   <div class="document-content">
-    {{ partial "commons/list-content.html" . }}
     {{ partial "locations/summary.html" (dict
         "with_container" true
         "context" .
diff --git a/layouts/partials/locations/hero-list.html b/layouts/partials/locations/hero-list.html
index b356483e..14226f2b 100644
--- a/layouts/partials/locations/hero-list.html
+++ b/layouts/partials/locations/hero-list.html
@@ -3,6 +3,6 @@
       (dict
         "title" $title
         "image" .Params.image
-        "sizes" site.Params.image_sizes.sections.events.hero
+        "sizes" site.Params.image_sizes.sections.locations.hero
         "context" .
       ) -}}
diff --git a/layouts/partials/locations/hero-single.html b/layouts/partials/locations/hero-single.html
index d13a6df8..45f9ecc0 100644
--- a/layouts/partials/locations/hero-single.html
+++ b/layouts/partials/locations/hero-single.html
@@ -1,13 +1,8 @@
 {{- $title := or .Params.header_text .Title -}}
-
-{{ with .Params.subtitle }}
-  {{- $title = printf "%s <span>%s</span>" $title . -}}
-{{ end }}
-
 {{- partial "header/hero.html"
-  (dict
-    "title" $title
-    "image" .Params.image
-    "sizes" site.Params.image_sizes.sections.events.hero_single
-    "context" .
-  ) -}}
+      (dict
+        "title" $title
+        "image" .Params.image
+        "sizes" site.Params.image_sizes.sections.locations.hero_single
+        "context" .
+      ) -}}
diff --git a/layouts/partials/locations/sidebar.html b/layouts/partials/locations/sidebar.html
deleted file mode 100644
index e491bc70..00000000
--- a/layouts/partials/locations/sidebar.html
+++ /dev/null
@@ -1,14 +0,0 @@
-<div class="section-sidebar event-sidebar">
-  <div>
-    <aside>
-      {{- partial "events/event-infos.html" . -}}
-    </aside>
-
-    {{ partial "toc/container.html"
-      (dict
-          "toc" "toc/default.html"
-          "context" .
-      )
-    }}
-  </div>
-</div>
diff --git a/layouts/partials/locations/summary copy.html b/layouts/partials/locations/summary copy.html
deleted file mode 100644
index 85e4edf8..00000000
--- a/layouts/partials/locations/summary copy.html	
+++ /dev/null
@@ -1 +0,0 @@
-{{- partial "commons/summary-in-content.html" . -}}
-- 
GitLab