pcjs/_includes/screenshot.html
2016-03-06 10:56:11 -08:00

16 lines
598 B
HTML

{% assign include_width = "" %}
{% assign include_height = "" %}
{% if include.width %}
{% capture include_width %} width="{{ include.width }}"{% endcapture %}
{% endif %}
{% if include.height %}
{% capture include_height %} height="{{ include.height }}"{% endcapture %}
{% endif %}
<div class="screenshot-frame">
<div class="screenshot-image">
<a href="{{ site.baseurl }}{{ include.link }}">
<img src="{{ site.baseurl }}{{ include.src }}"{{ include_width }}{{ include_height }} alt="{{ include.title }}"/>
</a>
</div>
<span class="screenshot-label">{{ include.title }}</span>
</div>