mirror of
https://github.com/86Box/86box.github.io.git
synced 2026-02-21 17:15:35 -07:00
25 lines
604 B
HTML
25 lines
604 B
HTML
<figure class="image">
|
|
{%- assign thumbnail = include.thumbnail | default: include.url -%}
|
|
{%- assign alt = include.alt | default: include.description | normalize_whitespace -%}
|
|
{%- if include.url -%}
|
|
<a href="{{ include.url }}"
|
|
{% if alt %}
|
|
title="{{ alt }}"
|
|
{% endif %}
|
|
>
|
|
{%- endif -%}
|
|
<img class="image" src="{{ thumbnail }}"
|
|
{%- if alt %}
|
|
alt="{{ alt }}"
|
|
{%- endif -%}
|
|
/>
|
|
{%- if include.url -%}
|
|
</a>
|
|
{%- endif -%}
|
|
{%- if include.description -%}
|
|
<figcaption class="image-caption">
|
|
{{- include.description | markdownify -}}
|
|
</figcaption>
|
|
{%- endif -%}
|
|
</figure>
|