diff --git a/docs/changelog.rst b/docs/changelog.rst index 956c41e..78babe3 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -8,6 +8,7 @@ Changelog * Add youtube section https://prosopopee.readthedocs.org/en/latest/sections.html#youtube by beudbeud * Add quotes section https://prosopopee.readthedocs.org/en/latest/sections.html#quote by beudbeud * Add deploy and preview option https://prosopopee.readthedocs.io/en/latest/build.html#preview by beudbeud + * Load only css and jss if the section is used by beudbeud 0.4 (2016-12-11) diff --git a/prosopopee/themes/exposure/templates/gallery-index.html b/prosopopee/themes/exposure/templates/gallery-index.html index ae75a7d..dafd57d 100644 --- a/prosopopee/themes/exposure/templates/gallery-index.html +++ b/prosopopee/themes/exposure/templates/gallery-index.html @@ -1,3 +1,10 @@ +{% for section in gallery.sections %} +{% if section.type == 'panorama' %} +{% set panorama = true %} +{% elif section.type == 'audio'%} +{% set audio = true %} +{% endif %} +{% endfor %} @@ -6,8 +13,11 @@ + {% if panorama %} + {% elif audio %} + {% endif %} {% if gallery.description %} @@ -38,15 +48,19 @@ + {% if panorama %} + {% elif audio %} + + {% endif %} - + {% if panorama %} + {% elif audio %} + {% endif %}