From 1d8c4ee16d41b87c6454a53ebda8ee0e7b95d487 Mon Sep 17 00:00:00 2001 From: Quincy Morgan <2046746+quincylvania@users.noreply.github.com> Date: Fri, 26 Apr 2024 16:54:48 -0400 Subject: [PATCH] Allow specific logo for list views --- _includes/item_list.html | 4 ++-- _tools/frontmatter-validator/schemas/page.schema.json | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/_includes/item_list.html b/_includes/item_list.html index 5e43373..3f2711b 100644 --- a/_includes/item_list.html +++ b/_includes/item_list.html @@ -52,8 +52,8 @@ {%- if item.sign -%} {%- assign imageurl = item.sign -%} {%- assign image_style_class = 'app-sign' -%} - {%- elsif item.logo -%} - {%- assign imageurl = item.logo -%} + {%- elsif item.logo or item.list_logo -%} + {%- assign imageurl = item.list_logo | default: item.logo -%} {%- assign image_style_class = 'contained-image' -%} {%- elsif item.image -%} {%- assign imageurl = item.image -%} diff --git a/_tools/frontmatter-validator/schemas/page.schema.json b/_tools/frontmatter-validator/schemas/page.schema.json index 5cebd60..93da8c9 100644 --- a/_tools/frontmatter-validator/schemas/page.schema.json +++ b/_tools/frontmatter-validator/schemas/page.schema.json @@ -97,6 +97,10 @@ "social_banner": { "type": "string" }, + "list_logo": { + "type": "string", + "description": "The logo to display in list views." + }, "logo": { "type": "string" },