|
|
|
@ -12,6 +12,7 @@
|
|
|
|
|
<div class="plants-list">
|
|
|
|
|
<!-- If you are using pagination, section.pages will be empty. You need to use the paginator object -->
|
|
|
|
|
{% for page in section.pages %}
|
|
|
|
|
<div class="plant-item-wrapper">
|
|
|
|
|
<div class="plant-item">
|
|
|
|
|
{% set data = load_data(path="/static/plants/" ~ page.extra.data ~ "/metadata.toml") %}
|
|
|
|
|
{% set image = resize_image(path=data.image.url, width=256, height=128, op="fill") %}
|
|
|
|
@ -20,6 +21,7 @@
|
|
|
|
|
<h2 class="plant-title">{{ page.title }}</h2>
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</div>
|
|
|
|
|
{% endblock content %}
|