From 2b2b6f9ce9effa01a1f773c9a67c14a358ac0108 Mon Sep 17 00:00:00 2001
From: Olivia206 <olivia.simonet@mmibordeaux.com>
Date: Wed, 14 Feb 2024 15:17:29 +0100
Subject: [PATCH] changed config for others cases

---
 config.yaml                                       | 4 ++++
 layouts/partials/blocks/templates/pages/list.html | 2 +-
 layouts/partials/pages/page-media.html            | 2 +-
 layouts/partials/papers/document-nav.html         | 2 +-
 layouts/partials/papers/sidebar.html              | 2 +-
 layouts/partials/volumes/volume.html              | 2 +-
 6 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/config.yaml b/config.yaml
index 15c4c641..fa8733f4 100644
--- a/config.yaml
+++ b/config.yaml
@@ -43,11 +43,15 @@ params:
     single:
       backlinks: false
   pages:
+    default_image: false
     index:
       truncate_description: 200 # Set to 0 to disable truncate
   papers:
+    default_image: false
     sidebar:
       direction: start
+  volumes:
+    default_image: false
   persons:
     index:
       layout: grid # grid | list
diff --git a/layouts/partials/blocks/templates/pages/list.html b/layouts/partials/blocks/templates/pages/list.html
index 879d74d6..0314906c 100644
--- a/layouts/partials/blocks/templates/pages/list.html
+++ b/layouts/partials/blocks/templates/pages/list.html
@@ -36,7 +36,7 @@
                           "sizes"    site.Params.image_sizes.blocks.pages.list
                         ) -}}
                 {{- else -}}
-                  {{- partial "commons/image-default.html" -}}
+                  {{- partial "commons/image-default.html" "pages" -}}
                 {{- end -}}
               </div>
             {{ end }}
diff --git a/layouts/partials/pages/page-media.html b/layouts/partials/pages/page-media.html
index 1f6e6e06..06858736 100644
--- a/layouts/partials/pages/page-media.html
+++ b/layouts/partials/pages/page-media.html
@@ -6,6 +6,6 @@
             "sizes"    site.Params.image_sizes.sections.pages.item
           ) -}}
   {{- else -}}
-    {{- partial "commons/image-default.html" -}}
+    {{- partial "commons/image-default.html" "pages" -}}
   {{- end -}}
 </div>
diff --git a/layouts/partials/papers/document-nav.html b/layouts/partials/papers/document-nav.html
index 49b04d43..fcba2529 100644
--- a/layouts/partials/papers/document-nav.html
+++ b/layouts/partials/papers/document-nav.html
@@ -16,7 +16,7 @@
                       "desktop"  "408x485"
                     ) -}}
             {{- else if site.Params.default_image.url -}}
-              {{- partial "commons/image-default.html" (dict "class" "img-fluid") -}}
+              {{- partial "commons/image-default.html" "papers" -}}
             {{- end -}}
           </div>
         </a>
diff --git a/layouts/partials/papers/sidebar.html b/layouts/partials/papers/sidebar.html
index c00aa0a4..a11b5c3c 100644
--- a/layouts/partials/papers/sidebar.html
+++ b/layouts/partials/papers/sidebar.html
@@ -18,7 +18,7 @@
                           "desktop"  "408x485"
                         ) -}}
                 {{- else if site.Params.default_image.url -}}
-                  {{- partial "commons/image-default.html" (dict "class" "img-fluid") -}}
+                  {{- partial "commons/image-default.html" "papers" -}}
                 {{- end -}}
               </div>
             </a>
diff --git a/layouts/partials/volumes/volume.html b/layouts/partials/volumes/volume.html
index d6a49058..0823667a 100644
--- a/layouts/partials/volumes/volume.html
+++ b/layouts/partials/volumes/volume.html
@@ -12,7 +12,7 @@
               "sizes"    site.Params.image_sizes.sections.volumes.item
             ) -}}
     {{- else if site.Params.default_image.url -}}
-      {{- partial "commons/image-default.html" (dict "class" "img-fluid") -}}
+      {{- partial "commons/image-default.html" "volumes" -}}
     {{- end -}}
   </div>
 </article>
-- 
GitLab