0
mirror of https://github.com/valentineus/popov.link.git synced 2025-07-02 23:50:27 +03:00
Files
popov.link/_includes/image.html
2018-04-25 01:56:34 +04:00

12 lines
567 B
HTML

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