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

Factor out title generating

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