diff --git a/doc/configuration.rst b/doc/configuration.rst index 17c4436..3935851 100644 --- a/doc/configuration.rst +++ b/doc/configuration.rst @@ -840,6 +840,15 @@ more information. Defaults to: ``{}`` +HTML_TITLE +~~~~~~~~~~ + +This configuration key allows you to customize the HTML title of all the +pages, from ``... - pagure`` (default) to ``... - ``. + +Defaults to: ``Pagure`` + + Deprecated configuration keys ----------------------------- diff --git a/pagure/templates/master.html b/pagure/templates/master.html index 5064055..d757531 100644 --- a/pagure/templates/master.html +++ b/pagure/templates/master.html @@ -2,7 +2,7 @@ - {% block title %}{% endblock %} - Pagure + {% block title %}{% endblock %} - {{ config.get('HTML_TITLE', 'Pagure') }} Home - Pagure HTML title set', + output.data) + def test_index(self): """ Test the index endpoint. """ output = self.app.get('/') self.assertEqual(output.status_code, 200) + self.assertIn('Home - Pagure', output.data) self.assertIn( '

All Projects ' '0

', output.data)