drewcassidy.me/_includes/figure-video.html
drewcassidy 97bd1c804d New blog post
* new blog post on making particles using photographs
* exif strip of all images
* some css fixes
* add video support
2023-04-19 01:22:06 -07:00

20 lines
579 B
HTML

{% if include.float %}
<figure class="figure-float" style="float:{{ include.float }};">
{% else %}
<figure class="figure-video">
{% endif %}
{% capture path %}/images/{{page.path | split: '/' | last | split: '.' | first }}{% endcapture %}
{% capture src %}{{ path }}/{{ include.src }}{% endcapture %}
{% capture type %}{{ include.src | split: "." | last }}{% endcapture %}
{% include video.html src=src type=type %}
{% if include.caption %}
<figcaption>
{{ include.caption | markdownify | remove: '<p>' | remove: '</p>' }}
</figcaption>
{% endif %}
</figure>