Files
schleppe-lab/_includes/image.html
Kevin Midboe b5513a8111 Update color theme to white and blue
- Border accent shadow effect that makes assets float of page
- Apply border accent to image captions
2024-02-18 13:12:41 +01:00

24 lines
603 B
HTML

<!-- _includes/image.html -->
{% if include.fullwidth %}
<figure class="border-accent fullwidth">
{% else %}
<figure class="border-accent">
{% endif %}
{% if include.url %}
<a href="{{ include.url }}">
{% endif %}
<img
{% if include.srcabs %}
src="{{ include.srcabs }}"
{% else %}
src="{{ site.baseurl }}/assets/images/{{ include.src }}"
{% endif %}
alt="{{ include.alt }}">
{% if include.url %}
</a>
{% endif %}
{% if include.caption %}
<figcaption>{{ include.caption }}</figcaption>
{% endif %}
</figure>