From 66cf055f0781d9047471214a0363b11402f051b5 Mon Sep 17 00:00:00 2001 From: bedroesb Date: Thu, 21 Nov 2024 09:21:32 +0100 Subject: [PATCH] page_img not part of title --- _includes/section-navigation-tiles.html | 20 ++++++++++---------- assets/css/main.scss | 8 ++++---- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/_includes/section-navigation-tiles.html b/_includes/section-navigation-tiles.html index 880e663..2e66ab5 100644 --- a/_includes/section-navigation-tiles.html +++ b/_includes/section-navigation-tiles.html @@ -81,6 +81,9 @@ {%- endif %}
+ {%- if current_page.page_img %} +
+ {%- endif %} {%- endif %}
+ {%- if current_page.page_img %} + {%- capture file_url -%} + {{ "/images/" | append: current_page.page_img | relative_url }} + {%- endcapture -%} + logo of {{current_page.title}} +
+ {%- endif %}
{% endunless %} diff --git a/assets/css/main.scss b/assets/css/main.scss index 59d5f92..4bf2ed6 100644 --- a/assets/css/main.scss +++ b/assets/css/main.scss @@ -1000,6 +1000,10 @@ a.info-collapse[aria-expanded="true"]:last-of-type + .show { .type-icon { height: 1.2rem; } + .page-img-sm { + max-height: 4em; + max-width: 6em; + } } } @@ -1026,9 +1030,5 @@ iframe.scale { min-width: 8em; } -/*------Tile Image-------*/ -.tile-img-sm { - height: 50px; - } @import "custom_classes";