{% if config["motd"]["enabled"] %}
{% if "title" in config["motd"] %}
{{ config["motd"]["title"] }}
{% endif %}
{{ config["motd"]["message"] }}
{% endif %}
{% for section in sections %}
{% set section_css_classes = section["css_classes"]|join(" ") %}
{% if "type" in section: %}
{% if section["type"] == "links" %}
{% include "links.html" with context %}
{% elif weather["system_on"] and section['type'] == "weather": %}
{% include "weather.html" with context %}
{% endif %}
{% endif %}
{% endfor %}