|
1 | 1 | {%- assign update_images_folder = "https://images.wurstclient.net/_media/update/" -%} |
| 2 | +{%- assign new_images_base = "https://images.wurstclient.net/" -%} |
2 | 3 | {%- assign placeholder = "https://images.wurstclient.net/_media/placeholder-320x180.webp" -%} |
3 | 4 |
|
4 | 5 | <div class="padding10 bg-grayDarker"> |
5 | | -{%- if page.image contains update_images_folder -%} |
6 | | - {%- assign full_size_image = page.image | replace: '_540p.webp', '.jpg' -%} |
7 | | - {%- assign filename = full_size_image | replace: update_images_folder, '' -%} |
8 | | - <a href="{{ full_size_image }}" target="_blank" title="File: {{ filename }}"> |
| 6 | + {%- if page.image contains "/960x540.webp" -%} |
| 7 | + {%- assign full_size_image = page.image | replace: '960x540.webp', 'source.png' -%} |
| 8 | + <a href="{{ full_size_image }}" target="_blank"> |
| 9 | + <img src="{{ page.image }}" alt="{{ page.title }}" width="960" height="540"> |
| 10 | + </a> |
| 11 | + {%- elsif page.image contains update_images_folder -%} |
| 12 | + {%- assign full_size_image = page.image | replace: '_540p.webp', '.jpg' -%} |
| 13 | + {%- assign filename = full_size_image | replace: update_images_folder, '' -%} |
| 14 | + <a href="{{ full_size_image }}" target="_blank" title="File: {{ filename }}"> |
| 15 | + <img src="{{ page.image }}" alt="{{ page.title }}" width="960" height="540"> |
| 16 | + </a> |
| 17 | + {%- elsif page.image -%} |
9 | 18 | <img src="{{ page.image }}" alt="{{ page.title }}" width="960" height="540"> |
10 | | - </a> |
11 | | -{%- elsif page.image -%} |
12 | | - <img src="{{ page.image }}" alt="{{ page.title }}" width="960" height="540"> |
13 | | -{%- else -%} |
| 19 | + {%- else -%} |
14 | 20 | <div class="missing-image set-border"> |
15 | 21 | <img src="{{ placeholder }}" loading="lazy" class="no-visible" alt="placeholder for {{ page.title }} (missing image)" width="960" height="540"> |
16 | 22 | <span class="mif-file-picture fg-grayLight"></span> |
|
0 commit comments