Start working on images

This commit is contained in:
2017-12-24 15:04:19 -08:00
committed by Andrew Cassidy
parent d94d925f8d
commit 251e6a2862
56 changed files with 281 additions and 109 deletions

View File

@ -0,0 +1,30 @@
<figure
{% if include.float %}
style="float: {{include.float}};"
{% else %}
style="float: none; width:100%"
{% endif %}>
{% assign srcs = include.src | split: ' ' %}
{% capture path %}/images/{{page.path | split: '/' | last | split: '.' | first }}{% endcapture %}
<div class="figure-contents">
{% for src in srcs %}
{% capture img %} {{path}}/{{src}} {% endcapture %}
<a href="{{ img | remove: "-small" }}"> <img
src="{{ img }}"
{% if include.caption %}
alt="{{ include.caption | markdownify | strip_html }}"
{% else %}
alt="{{ include.alt }}"
{% endif %}> </a>
{% endfor %}
</div>
{% if include.caption %}
<figcaption>
{{ include.caption | markdownify | remove: '<p>' | remove: '</p>' }}
</figcaption>
{% endif %}
</figure>