Allow floating images to start/end of a paragraph

This commit is contained in:
daudix
2024-06-27 22:55:35 +03:00
parent c4e48dedf7
commit fa8b441f7b
4 changed files with 77 additions and 6 deletions

View File

@ -2,20 +2,24 @@
<a href="{{ url }}">
<img class="
{% if full %}full{% endif %}
{% if start %}start{% endif %}
{% if end %}end{% endif %}
{% if pixels %}pixels{% endif %}
{% if transparent %}transparent{% endif %}
{% if no_hover %}no-hover{% endif %}
"
{%- if alt -%}alt="{{alt}}"{%- endif -%}
{%- if alt -%}alt="{{ alt }}"{%- endif -%}
src="{{ url_min }}" />
</a>
{%- else -%}
<img class="
{% if full %}full{% endif %}
{% if start %}start{% endif %}
{% if end %}end{% endif %}
{% if pixels %}pixels{% endif %}
{% if transparent %}transparent{% endif %}
{% if no_hover %}no-hover{% endif %}
"
{%- if alt -%}alt="{{alt}}"{%- endif -%}
{%- if alt -%}alt="{{ alt }}"{%- endif -%}
src="{{ url }}" />
{%- endif -%}

View File

@ -1,7 +1,9 @@
<video class="
{% if full %}full{% endif %}
{% if start %}start{% endif %}
{% if end %}end{% endif %}
{% if pixels %}pixels{% endif %}
{% if transparent %}transparent{% endif %}
"
{%- if alt -%}alt="{{alt}}"{%- endif -%}
controls src="{{url}}"></video>
{%- if alt -%}alt="{{ alt }}"{%- endif -%}
controls src="{{ url }}"></video>