diff --git a/_config.yml b/_config.yml index 7b704edd2..a2c3b67c5 100644 --- a/_config.yml +++ b/_config.yml @@ -62,3 +62,4 @@ exclude: - template.md - Rakefile - .idea + - assets/images/boards/original diff --git a/_includes/downloads/board_image.html b/_includes/downloads/board_image.html index 89d64e82e..efbba68f3 100644 --- a/_includes/downloads/board_image.html +++ b/_includes/downloads/board_image.html @@ -1,15 +1,5 @@ -{% for static_file in site.static_files %} - {% assign small_image = "/assets/images/boards/small/" | append: include.board_image %} - {% if static_file.path == small_image %} - {% assign has_responsive_images = true %} - {% endif %} -{% endfor %} -{% if has_responsive_images %} Image of Board -{% else %} - Image of Board -{% endif %} + src="{{ "/assets/images/boards/large/" | append: include.board_image | relative_url }}" alt="Image of Board" loading="lazy"> diff --git a/_layouts/download.html b/_layouts/download.html index 14eeb919a..9084548f7 100644 --- a/_layouts/download.html +++ b/_layouts/download.html @@ -8,17 +8,7 @@ layout: default
- {% for static_file in site.static_files %} - {% assign large_image = "/assets/images/boards/large/" | append: page.board_image %} - {% if static_file.path == large_image %} - {% assign has_responsive_images = true %} - {% endif %} - {% endfor %} - {% if has_responsive_images %} - Image of Board - {% else %} - Image of Board - {% endif %} + Image of Board

{{ content }}