{% extends "base.html" %} {% import "macros.html" as macros %} {% block meta %} {% set data = load_data(path="/plants/" ~ page.extra.data ~ "/metadata.toml") %} {{ page.title }} - Plant Wiki {% set image = resize_image(path=data.image.url, width=255, height=255) %} {% endblock meta %} {% block css %} {{super()}} {% endblock css %} {% block content %} {% set data = load_data(path="/plants/" ~ page.extra.data ~ "/metadata.toml") %}

{{ page.title }} ({{data.bin_name}})

{% block image %} {% set image = resize_image(path=data.image.url, width=1024, height=512) %}
{{ data.image.alt }} {% if data.image.source != "" %} Source {% endif %}
{% endblock image %}

Site

{% if data.temp %}
{% endif %} {% if data.site.light %} {{ macros::badge(icon="sun", class="light-badge", text=data.site.light, plain="Prefers " ~ data.site.light ~ " lighting conditions.") }} {% endif %} {% if data.site.humidity%} {{ macros::badge(icon="drop", class="humid-badge", text=data.site.humidity, plain="Prefers " ~ data.site.humidity~ " humidity.") }} {% endif %} {% block site %} {{ load_data(path="/plants/" ~ page.extra.data ~ "/site.md") | markdown | safe }} {% endblock site %}

Care

{% if data.care.water_schedule %} {{ macros::badge(icon="drizzle", class="water-badge", text="every " ~ data.care.water_schedule, plain="Water every " ~ data.care.water_schedule ~ ".") }} {% endif %} {% if data.care.mist_schedule %} {{ macros::badge(icon="mist", class="mist-badge", text="every " ~ data.care.mist_schedule, plain="Mist every " ~ data.care.mist_schedule ~ ".") }} {% endif %} {% if data.care.clean_schedule %} {{ macros::badge(icon="brush-2", class="clean-badge", text="every " ~ data.care.clean_schedule, plain="Clean every " ~ data.care.clean_schedule ~ ".") }} {% endif %} {% block care %} {{ load_data(path="/plants/" ~ page.extra.data ~ "/care.md") | markdown | safe }} {% endblock care %} {% if data.additional_chapters %} {% block additional_chapters %} {% for key, chapter in data.additional_chapters %}

{{ chapter.title }}

{{ load_data(path="/plants/" ~ page.extra.data ~ "/" ~ chapter.file ~ ".md") | markdown | safe }}
{% endfor %} {% endblock additional_chapters %} {% endif %}
{{ page.content | safe }}
{% endblock content %}