From: Pablo J. Urbano Santos Date: Sat, 19 Nov 2011 16:07:41 +0000 (+0100) Subject: Allow instance owners to customize html titles of page: X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=3c0411f51f43ade8c7d47df4f3843fd79d4709b5;p=mediagoblin.git Allow instance owners to customize html titles of page: Added html_title config option. Made base.html template use html_title option as page title. --- diff --git a/mediagoblin/config_spec.ini b/mediagoblin/config_spec.ini index 900957ce..b804358c 100644 --- a/mediagoblin/config_spec.ini +++ b/mediagoblin/config_spec.ini @@ -1,4 +1,7 @@ [mediagoblin] +# HTML title of the pages +html_title = string(default="GNU MediaGoblin") + # database stuff db_host = string() db_name = string(default="mediagoblin") diff --git a/mediagoblin/templates/mediagoblin/base.html b/mediagoblin/templates/mediagoblin/base.html index 925386e5..0d6b9e40 100644 --- a/mediagoblin/templates/mediagoblin/base.html +++ b/mediagoblin/templates/mediagoblin/base.html @@ -19,7 +19,7 @@ - {% block title %}{% trans %}GNU MediaGoblin{% endtrans %}{% endblock title %} + {{ app_config['html_title'] }}