Factor out title generating
This commit is contained in:
parent
a8c16269d9
commit
8e1c2bfc88
|
@ -8,7 +8,7 @@
|
|||
<meta name="author" content="Michal Čihař" />
|
||||
<meta name="copyright" content="Copyright © 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
1
html/title.html
Normal file
|
@ -0,0 +1 @@
|
|||
{% if title %}{{ title }}{% else %}{{ fallbacktitle }}{% endif %}
|
Loading…
Reference in New Issue
Block a user