Factor out title generating

This commit is contained in:
Michal Čihař 2012-02-29 15:09:47 +01:00
parent a8c16269d9
commit 8e1c2bfc88
2 changed files with 3 additions and 2 deletions

View File

@ -8,7 +8,7 @@
<meta name="author" content="Michal Čihař" />
<meta name="copyright" content="Copyright &copy; 2003 - {{ current_year }} Michal Čihař" />
<title>{% if title %}{{ title }}{% else %}{{ fallbacktitle }}{% endif %}</title>
<title>{% include "title.html" %}</title>
{% if description %}
<meta name="description" content="{{ description }}" />
{% endif %}
@ -26,7 +26,7 @@
</head>
<body>
<h1>{% if title %}{{ title }}{% else %}{{ fallbacktitle }}{% endif %}</h1>
<h1>{% include "title.html" %}</h1>
<ul class="menu">
{% if user.is_authenticated %}

1
html/title.html Normal file
View File

@ -0,0 +1 @@
{% if title %}{{ title }}{% else %}{{ fallbacktitle }}{% endif %}