You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
932 B
HTML
27 lines
932 B
HTML
{% extends "base.html" %}
|
|
|
|
{% block css %}
|
|
{{super()}}
|
|
<link href="{{ get_url(path="plants.css", trailing_slashes=false) | safe }}" rel="stylesheet">
|
|
{% endblock css %}
|
|
|
|
{% block content %}
|
|
<h1 class="title">
|
|
{{ section.title }}
|
|
</h1>
|
|
<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="/plants/" ~ page.extra.data ~ "/metadata.toml") %}
|
|
{% set image = resize_image(path=data.image.url, width=256, height=128, op="fill") %}
|
|
<a class="plant-link" href="{{ page.permalink | safe }}">
|
|
<img class="plant-image" src="{{ image.url }}" alt="{{ data.image.alt }}">
|
|
<h2 class="plant-title">{{ page.title }}</h2>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
{% endblock content %} |