From ad42bca189c85342019a1e8cd7b6084e5ddc7d7a Mon Sep 17 00:00:00 2001 From: Simon Conseil Date: Sun, 21 Nov 2021 18:46:26 +0100 Subject: [PATCH] Add gallery title to albums (fix #441) --- sigal/themes/colorbox/templates/base.html | 2 +- sigal/themes/galleria/templates/base.html | 2 +- sigal/themes/photoswipe/templates/base.html | 2 +- tests/test_gallery.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sigal/themes/colorbox/templates/base.html b/sigal/themes/colorbox/templates/base.html index 37f6283..2b85e3e 100644 --- a/sigal/themes/colorbox/templates/base.html +++ b/sigal/themes/colorbox/templates/base.html @@ -4,7 +4,7 @@ - {{ album.title }} + {{ album.title|striptags }} - {{ settings.title }} diff --git a/sigal/themes/galleria/templates/base.html b/sigal/themes/galleria/templates/base.html index 6a94e6b..092e4b1 100644 --- a/sigal/themes/galleria/templates/base.html +++ b/sigal/themes/galleria/templates/base.html @@ -4,7 +4,7 @@ - {{ album.title|striptags }} + {{ album.title|striptags }} - {{ settings.title }} diff --git a/sigal/themes/photoswipe/templates/base.html b/sigal/themes/photoswipe/templates/base.html index fe477c2..56fdea4 100644 --- a/sigal/themes/photoswipe/templates/base.html +++ b/sigal/themes/photoswipe/templates/base.html @@ -4,7 +4,7 @@ - {{ album.title }} + {{ album.title|striptags }} - {{ settings.title }} diff --git a/tests/test_gallery.py b/tests/test_gallery.py index c9748db..1135574 100644 --- a/tests/test_gallery.py +++ b/tests/test_gallery.py @@ -295,7 +295,7 @@ def test_gallery(settings, tmpdir): with open(out_html) as f: html = f.read() - assert 'Sigal test gallery' in html + assert 'Sigal test gallery - Sigal test gallery ☺' in html assert '' in html logger = logging.getLogger('sigal')