summaryrefslogblamecommitdiffstats
path: root/_includes/image.html
blob: 35bd4c36f6b06aef88d5001354b0befd0e7abb09 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11



                                                                                 
                                                                                                                                                                                                       





                                                                       
<figure>
    {% if {{include.url}} %}
        <a class="no_icon" target="_blank" rel="noopener" href="{{include.url}}">
    {% endif %}
    <img class="docimage" src="{{include.file | prepend: '/assets/img/' | relative_url }}" alt="{{include.alt}}" {% if {{include.max-width}} %}style="max-width: {{include.max-width}}px"{% endif %} />
    {% if {{include.url}} %}</a>{% endif %}{% if {{include.caption}} %}
    <figcaption>
        {{include.caption}}
    </figcaption>
    {% endif %}
</figure>