You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

20 lines
771 B

{% if include.otherpost == true %}
{% assign url = "/media/" | append: include.file %}
{% else %}
{% capture url %}/media/{{ page.path | remove: "_posts/" | remove: ".md" | append: "/" | append: include.file }}{% endcapture %}
{% endif %}
{% if include.caption %}
<div class="figure">
<a href="{{ url | prepend: site.baseurl }}" target="_blank">
<img src="{{ url | prepend: site.baseurl }}" alt="{% if include.alt %}{{ include.alt }}{% else %}Image{% endif %}">
<div class="text">{{ include.caption }}</div>
</a>
</div>
{% else %}
<div class="img">
<a href="{{ url | prepend: site.baseurl }}" target="_blank">
<img src="{{ url | prepend: site.baseurl }}" alt="{% if include.alt %}{{ include.alt }}{% else %}Image{% endif %}">
</a>
</div>
{% endif %}