aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin
diff options
context:
space:
mode:
authorPablo J. Urbano Santos <flamma@member.fsf.org>2011-11-19 17:07:41 +0100
committerPablo J. Urbano Santos <flamma@member.fsf.org>2011-11-19 17:07:41 +0100
commit3c0411f51f43ade8c7d47df4f3843fd79d4709b5 (patch)
tree9e1475da5642ad9f4d25002f55f3a499f0811429 /mediagoblin
parent53bc39755bf22fe8eebf06b051018eba111a64e7 (diff)
downloadmediagoblin-3c0411f51f43ade8c7d47df4f3843fd79d4709b5.tar.lz
mediagoblin-3c0411f51f43ade8c7d47df4f3843fd79d4709b5.tar.xz
mediagoblin-3c0411f51f43ade8c7d47df4f3843fd79d4709b5.zip
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.
Diffstat (limited to 'mediagoblin')
-rw-r--r--mediagoblin/config_spec.ini3
-rw-r--r--mediagoblin/templates/mediagoblin/base.html2
2 files changed, 4 insertions, 1 deletions
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 @@
<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"