fall back to empty alt text instead of repeating title
This commit is contained in:
parent
bf78aeb152
commit
5913b5f733
2 changed files with 5 additions and 5 deletions
|
|
@ -9,7 +9,7 @@ schema: BlogPosting
|
|||
|
||||
{% if image %}
|
||||
<!-- image -->
|
||||
{% image image, alt or title, credit, "eager", "feature" %}
|
||||
{% image image, alt or "", credit, "eager", "feature" %}
|
||||
{% endif %}
|
||||
|
||||
<p class="meta | cluster gutter-xs-s">
|
||||
|
|
|
|||
|
|
@ -108,10 +108,10 @@ As for the higher build cost of post-processing, the shortcode images are being
|
|||
{% raw %}
|
||||
|
||||
```jinja2
|
||||
{% image image, alt or title, credit, "eager", "feature", "grayscale" %}
|
||||
{% image image, alt or "", credit, "eager", "feature", "grayscale" %}
|
||||
|
||||
<figure class="feature">
|
||||
<img src="{{ image }}" alt="{{ alt or title }}" loading="eager" decoding="sync" class="grayscale">
|
||||
<img src="{{ image }}" alt="{{ alt or '' }}" loading="eager" decoding="sync" class="grayscale">
|
||||
{% if credit %}
|
||||
<figcaption>{{ credit }}</figcaption>
|
||||
{% endif %}
|
||||
|
|
@ -121,10 +121,10 @@ As for the higher build cost of post-processing, the shortcode images are being
|
|||
|
||||
{% endraw %}
|
||||
|
||||
{% image image, alt or title, credit, "eager", "feature", "grayscale" %}
|
||||
{% image image, alt or "", credit, "eager", "feature", "grayscale" %}
|
||||
|
||||
<figure class="feature">
|
||||
<img src="{{ image }}" alt="{{ alt or title }}" loading="eager" decoding="sync" class="grayscale">
|
||||
<img src="{{ image }}" alt="{{ alt or '' }}" loading="eager" decoding="sync" class="grayscale">
|
||||
{% if credit %}
|
||||
<figcaption>{{ credit }}</figcaption>
|
||||
{% endif %}
|
||||
|
|
|
|||
Loading…
Reference in a new issue