Improve Media, Column, Heading blocks
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
{% capture content %}
|
||||
{% if include.type == "image" %}
|
||||
<picture
|
||||
src="{{ include.url | absolute_url }}"
|
||||
{% if include.width %}width="{{ include.width }}"{% endif %}
|
||||
{% if include.height %}height="{{ include.height }}"{% endif %}>
|
||||
<img src="{{ include.url | absolute_url }}"
|
||||
@@ -10,20 +11,22 @@
|
||||
</picture>
|
||||
{% elsif include.type == "video" %}
|
||||
<video controls
|
||||
{% if include.poster %}poster="{{ include.poster | absolute_url }}"{% endif %}
|
||||
{% if include.preload %}preload="{{ include.preload }}"{% endif %}
|
||||
src="{{ include.url | absolute_url }}"
|
||||
{% if include.width %}width="{{ include.width }}"{% endif %}
|
||||
{% if include.height %}height="{{ include.height }}"{% endif %}
|
||||
{% if include.preload %}preload="{{ include.preload }}"{% endif %}
|
||||
{% if include.autoplay %}autoplay="true"{% endif %}
|
||||
{% if include.muted %}muted="true"{% endif %}
|
||||
{% if include.loop %}loop="true"{% endif %}
|
||||
{% if include.poster %}poster="{{ include.poster | absolute_url }}"{% endif %}>
|
||||
{% if include.loop %}loop="true"{% endif %}>
|
||||
<source src="{{ include.url | absolute_url }}">
|
||||
</video>
|
||||
{% elsif include.type == "audio" %}
|
||||
<audio controls
|
||||
{% if include.preload %}preload="{{ include.preload }}"{% endif %}
|
||||
src="{{ include.url | absolute_url }}"
|
||||
{% if include.width %}width="{{ include.width }}"{% endif %}
|
||||
{% if include.height %}height="{{ include.height }}"{% endif %}
|
||||
{% if include.preload %}preload="{{ include.preload }}"{% endif %}
|
||||
{% if include.autoplay %}autoplay="true"{% endif %}
|
||||
{% if include.muted %}muted="true"{% endif %}
|
||||
{% if include.loop %}loop="true"{% endif %}>
|
||||
|
||||
Reference in New Issue
Block a user