Skip to content

Commit

Permalink
Allow specific logo for list views
Browse files Browse the repository at this point in the history
  • Loading branch information
quincylvania committed Apr 26, 2024
1 parent d207610 commit 1d8c4ee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _includes/item_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 -%}
Expand Down
4 changes: 4 additions & 0 deletions _tools/frontmatter-validator/schemas/page.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@
"social_banner": {
"type": "string"
},
"list_logo": {
"type": "string",
"description": "The logo to display in list views."
},
"logo": {
"type": "string"
},
Expand Down

0 comments on commit 1d8c4ee

Please sign in to comment.