mirror of
https://github.com/GenderDysphoria/GenderDysphoria.fyi.git
synced 2025-01-30 23:06:18 +00:00
Making the img template a little smarter
This commit is contained in:
parent
dd03907917
commit
37e2950a7a
@ -1,7 +1,7 @@
|
||||
|
||||
{{#if sizes}}
|
||||
<div class="{{className}}" {{#if style}}style="{{style}}"{{/if}} target="_break">
|
||||
<a href="{{#if link}}{{link}}{{else}}{{rev (lookup (last sizes) 'url')}}{{/if}}" class="lb"><img
|
||||
src="{{rev sizes.0.url}}"
|
||||
src="{{rev url}}"
|
||||
alt="{{alt}}"
|
||||
srcset="{{#join sizes}}{{rev url}} {{width}}w{{/join}}"
|
||||
sizes="{{#if srcSizes}}{{srcSizes}}{{else}}(max-width: 576px) 100vw, 576px{{/if}}"
|
||||
@ -11,3 +11,4 @@
|
||||
|
||||
{{#if caption}}<span class="card-body">{{{caption}}}</span>{{/if}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user