Commit 8e1c2bfc authored by Michal Čihař's avatar Michal Čihař

Factor out title generating

parent a8c16269
......@@ -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 %}
......
{% if title %}{{ title }}{% else %}{{ fallbacktitle }}{% endif %}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment