Browse Source

Add gallery title to albums (fix #441)

pull/452/head
Simon Conseil 4 years ago
parent
commit
ad42bca189
  1. 2
      sigal/themes/colorbox/templates/base.html
  2. 2
      sigal/themes/galleria/templates/base.html
  3. 2
      sigal/themes/photoswipe/templates/base.html
  4. 2
      tests/test_gallery.py

2
sigal/themes/colorbox/templates/base.html

@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>{{ album.title }}</title>
<title>{{ album.title|striptags }} - {{ settings.title }}</title>
<meta name="description" content="">
<meta name="author" content="{{ album.author }}">
<meta name="viewport" content="width=device-width">

2
sigal/themes/galleria/templates/base.html

@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>{{ album.title|striptags }}</title>
<title>{{ album.title|striptags }} - {{ settings.title }}</title>
<meta name="description" content="">
<meta name="author" content="{{ album.author }}">
<meta name="viewport" content="width=device-width">

2
sigal/themes/photoswipe/templates/base.html

@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>{{ album.title }}</title>
<title>{{ album.title|striptags }} - {{ settings.title }}</title>
<meta name="description" content="">
<meta name="author" content="{{ album.author }}">
<meta name="viewport" content="width=device-width">

2
tests/test_gallery.py

@ -295,7 +295,7 @@ def test_gallery(settings, tmpdir):
with open(out_html) as f:
html = f.read()
assert '<title>Sigal test gallery</title>' in html
assert '<title>Sigal test gallery - Sigal test gallery ☺</title>' in html
assert '<link rel="stylesheet" href="static/my.css">' in html
logger = logging.getLogger('sigal')

Loading…
Cancel
Save