Allow instance owners to customize html titles of page:
authorPablo J. Urbano Santos <flamma@member.fsf.org>
Sat, 19 Nov 2011 16:07:41 +0000 (17:07 +0100)
committerPablo J. Urbano Santos <flamma@member.fsf.org>
Sat, 19 Nov 2011 16:07:41 +0000 (17:07 +0100)
Added html_title config option.
Made base.html template use html_title option as page title.

mediagoblin/config_spec.ini
mediagoblin/templates/mediagoblin/base.html

index 900957cee4b23b3741659c5bc256b06142a1e881..b804358c05387ea911875e03f89f4810e955ee08 100644 (file)
@@ -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")
index 925386e550e074ac3330e7fddf92f9822a950d43..0d6b9e4060925dd1707c9daea48db63a48ee4441 100644 (file)
@@ -19,7 +19,7 @@
 <html>
   <head>
     <meta charset="utf-8">
-    <title>{% block title %}{% trans %}GNU MediaGoblin{% endtrans %}{% endblock title %}</title>
+    <title>{{ app_config['html_title'] }}</title>
     <link rel="stylesheet" type="text/css"
           href="{{ request.staticdirect('/css/extlib/reset.css') }}"/>
     <link rel="stylesheet" type="text/css"