Skip to content

Instantly share code, notes, and snippets.

@subsevenx
Last active March 23, 2022 19:27
Show Gist options
  • Save subsevenx/03d13488afa30b14afb4cf27efce3f4a to your computer and use it in GitHub Desktop.
Save subsevenx/03d13488afa30b14afb4cf27efce3f4a to your computer and use it in GitHub Desktop.
<figure>
{% if url %}
<a class="no_icon" target="_blank" rel="noopener" href="{{ url }}">
{% endif %}
<img class="docimage" src="/images/{{ file }}" alt="{{ alt }}" {% if max_width %} style="max-width: {{ max-width }}px{% endif %}" />
{% if url %}
</a>
{% endif %}
{% if caption %}<figcaption>{{ caption }}</figcaption>{% endif %}
</figure>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment