mirror of
https://github.com/KevinMidboe/schleppe-lab.git
synced 2025-10-29 17:50:39 +00:00
Homepage setup for schleppe lab blog
This commit is contained in:
23
_includes/image.html
Normal file
23
_includes/image.html
Normal file
@@ -0,0 +1,23 @@
|
||||
<!-- _includes/image.html -->
|
||||
{% if include.fullwidth %}
|
||||
<figure class="fullwidth">
|
||||
{% else %}
|
||||
<figure>
|
||||
{% 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>
|
||||
Reference in New Issue
Block a user