--- # Copyright (c) 2018 Florian Klampfer # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . layout: base --- {% assign strings = site.data.strings %}

{{ page.title | default:strings.home | default:"Home" }}

{% include components/message.html text=page.description hide=page.hide_description %}
{{ content }} {% if page.show_music %} {% assign music_posts = site.categories.Music %} {% if music_posts.size > 0 %}

{{ strings.music | default:"Music" }}

{% include_cached components/hy-img.html img=music_posts.first.image alt=music_posts.first.title %}
{% endif %} {% endif %} {% if page.show_pages %} {% assign pages = site.html_pages | where_exp:"item","item.layout == 'page' or item.layout == 'about'" | where_exp:"page","page.sitemap != false" %} {% if pages.size > 0 %}

{{ strings.pages | default:"Pages" }}

{% endif %} {% endif %} {% if page.show_visual %} {% if site.featured_categories.size > 0 %}

{{ strings.Visual | default:"Visual" }}

{% assign posts = site.posts | where_exp: "post", "post.categories.first != 'Music'" %}
{% include_cached components/hy-img.html img=posts.first.image alt=posts.first.title %}
{% endif %} {% endif %}