Browse Source

Added fixed width for images.

dev
Franco Masotti 10 months ago
parent
commit
42babd5319
Signed by: frnmst
GPG Key ID: 24116ED85666780A
  1. 4
      _includes/image.html

4
_includes/image.html

@ -7,14 +7,14 @@
{% if include.caption %}
<div>
<a href="{{ url | prepend: site.baseurl }}" target="_blank">
<img src="{{ url | prepend: site.baseurl }}" alt="{% if include.alt %}{{ include.alt }}{% else %}Image{% endif %}">
<img src="{{ url | prepend: site.baseurl }}" width="300" alt="{% if include.alt %}{{ include.alt }}{% else %}Image{% endif %}">
<div>{{ include.caption }}</div>
</a>
</div>
{% else %}
<div>
<a href="{{ url | prepend: site.baseurl }}" target="_blank">
<img src="{{ url | prepend: site.baseurl }}" alt="{% if include.alt %}{{ include.alt }}{% else %}Image{% endif %}">
<img src="{{ url | prepend: site.baseurl }}" width="300" alt="{% if include.alt %}{{ include.alt }}{% else %}Image{% endif %}">
</a>
</div>
{% endif %}