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 %}
|
{% if image %}
|
||||||
<!-- image -->
|
<!-- image -->
|
||||||
{% image image, alt or title, credit, "eager", "feature" %}
|
{% image image, alt or "", credit, "eager", "feature" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<p class="meta | cluster gutter-xs-s">
|
<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 %}
|
{% raw %}
|
||||||
|
|
||||||
```jinja2
|
```jinja2
|
||||||
{% image image, alt or title, credit, "eager", "feature", "grayscale" %}
|
{% image image, alt or "", credit, "eager", "feature", "grayscale" %}
|
||||||
|
|
||||||
<figure class="feature">
|
<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 %}
|
{% if credit %}
|
||||||
<figcaption>{{ credit }}</figcaption>
|
<figcaption>{{ credit }}</figcaption>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
@ -121,10 +121,10 @@ As for the higher build cost of post-processing, the shortcode images are being
|
||||||
|
|
||||||
{% endraw %}
|
{% endraw %}
|
||||||
|
|
||||||
{% image image, alt or title, credit, "eager", "feature", "grayscale" %}
|
{% image image, alt or "", credit, "eager", "feature", "grayscale" %}
|
||||||
|
|
||||||
<figure class="feature">
|
<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 %}
|
{% if credit %}
|
||||||
<figcaption>{{ credit }}</figcaption>
|
<figcaption>{{ credit }}</figcaption>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue