drewcassidy.me/_includes/figure-video.html

20 lines
579 B
HTML
Raw Normal View History

{% 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>