popov.link/_includes/image.html
Valentin Popov 50d2a17ec6
Minor changes
Signed-off-by: Valentin Popov <info@valentineus.link>
2018-04-25 02:18:49 +04:00

12 lines
541 B
HTML

{% assign alternative = include.alt | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape %}
{% assign identifier = include.id | strip_newlines | strip_html | strip | normalize_whitespace | slugify %}
{% assign source = include.src | strip_newlines | strip_html | strip | normalize_whitespace | uri_escape %}
<a href="#{{ identifier }}">
<img alt="{{ alternative }}" src="{{ source }}" />
</a>
<a href="#" class="fullscreen" id="{{ identifier }}">
<img alt="{{ alternative }}" src="{{ source }}" />
</a>