base tabler
This commit is contained in:
parent
ac2cfa9fe1
commit
0f84beacf1
1432 changed files with 28760 additions and 1 deletions
22
liquid/includes/ui/photo.html
Normal file
22
liquid/includes/ui/photo.html
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
<!-- Photo -->
|
||||
{% if include.id %}
|
||||
{% assign id = include.id | default: 1 %}
|
||||
{% if include.horizontal %}
|
||||
{% assign filtered-photos = photos | where: 'horizontal', true %}
|
||||
{% else %}
|
||||
{% assign filtered-photos = photos %}
|
||||
{% endif %}
|
||||
|
||||
{% assign photo = filtered-photos[id] %}
|
||||
|
||||
{% if include.background %}
|
||||
<div{% if include.class %} class="{{ include.class }}"{% endif %} style="background-image: url({{ page | relative }}/static/photos/{{ photo.file }})"></div>
|
||||
{% elsif include.ratio %}
|
||||
<div class="img-responsive img-responsive-{{ include.ratio }}{% if include.class %} {{ include.class }}{% endif %}" style="background-image: url({{ page | relative }}/static/photos/{{ photo.file }})"></div>
|
||||
{% else %}
|
||||
<img src="{{ page | relative }}/static/photos/{{ photo.file }}"{% if include.class %} class="{{ include.class }}"{% endif %} alt="{{ photo.title }}" />
|
||||
{% endif %}
|
||||
|
||||
{% else %}
|
||||
{% include "ui/svg.html" width=640 height=480 border=true class=include.class %}
|
||||
{% endif %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue