From 78fd2cf8fdad0e10d4ac14c372313c2a685071ab Mon Sep 17 00:00:00 2001 From: Adrien Beudin Date: Mon, 31 Oct 2016 14:20:43 +0100 Subject: [PATCH] light thme can be use for principal theme --- prosopopee/themes/light/templates/base.html | 10 +++++----- prosopopee/themes/light/templates/feed.xml | 6 +++--- prosopopee/themes/light/templates/footer.html | 8 ++++---- .../themes/light/templates/gallery-index.html | 10 +++++++--- prosopopee/themes/light/templates/index.html | 2 +- prosopopee/themes/light/templates/menu.html | 10 +++++----- prosopopee/themes/light/templates/page.html | 16 +++++++++++----- .../templates/sections/bordered-picture.html | 11 ++++++++--- .../light/templates/sections/full-picture.html | 9 +++++++-- .../light/templates/sections/panorama.html | 7 ++++++- .../light/templates/sections/pictures-group.html | 11 ++++++++--- prosopopee/themes/light/templates/share.html | 4 ++-- 12 files changed, 67 insertions(+), 37 deletions(-) diff --git a/prosopopee/themes/light/templates/base.html b/prosopopee/themes/light/templates/base.html index 3f11aa9..22b8f8e 100644 --- a/prosopopee/themes/light/templates/base.html +++ b/prosopopee/themes/light/templates/base.html @@ -4,9 +4,9 @@ {% block css %} {% endblock %} - {% if settings.rss -%} + {% if settings.rss %} - {% endif -%} + {% endif %} {{ settings.title }} @@ -18,11 +18,11 @@ {% block logo %} {% endblock %}

{{ settings.title }}

- {% if settings.sub_title -%}

{{ settings.sub_title }}

{% endif -%} + {% if settings.sub_title %}

{{ settings.sub_title }}

{% endif %}
- {% if settings.menu -%} + {% if settings.menu %} {% include 'menu.html' %} - {% endif -%} + {% endif %} diff --git a/prosopopee/themes/light/templates/feed.xml b/prosopopee/themes/light/templates/feed.xml index 0d685fe..ba5b2dd 100644 --- a/prosopopee/themes/light/templates/feed.xml +++ b/prosopopee/themes/light/templates/feed.xml @@ -7,14 +7,14 @@ {% for gallery in galleries %} - {% set absolute_url = settings.url + "/" + gallery.link -%} + {% set absolute_url = settings.url + "/" + gallery.link %} {{ gallery.title }} {{ absolute_url }} {{ gallery.link }} - {% if gallery.sub_title -%} + {% if gallery.sub_title %} {{ gallery.sub_title }} - {% endif -%} + {% endif %} {{ gallery.date }} {% endfor %} diff --git a/prosopopee/themes/light/templates/footer.html b/prosopopee/themes/light/templates/footer.html index 96451fe..a50cdbd 100644 --- a/prosopopee/themes/light/templates/footer.html +++ b/prosopopee/themes/light/templates/footer.html @@ -1,9 +1,9 @@ {% if settings.licence is not defined %} -{% set licence_url = 'https://creativecommons.org/licenses/by-sa/3.0/' -%} -{% set licence_name = 'CC-BY-SA' -%} +{% set licence_url = 'https://creativecommons.org/licenses/by-sa/3.0/' %} +{% set licence_name = 'CC-BY-SA' %} {% else %} -{% set licence_url = settings.licence.url -%} -{% set licence_name = settings.licence.name -%} +{% set licence_url = settings.licence.url %} +{% set licence_name = settings.licence.name %} {% endif %}