Bläddra i källkod

Add subtitle of article and page in <title> along with main title

Close #26
Talha Mansoor 10 år sedan
förälder
incheckning
fda7bcb958
2 ändrade filer med 2 tillägg och 2 borttagningar
  1. 1 1
      templates/article.html
  2. 1 1
      templates/page.html

+ 1 - 1
templates/article.html

@@ -1,7 +1,7 @@
 {% extends "base.html" %}
 
 {% block title %}
-{{ article.title }} · {{ super() }}
+{{ article.title }} {%if article.subtitle %} - {{ article.subtitle }} {% endif %} · {{ super() }}
 {% endblock title %}
 
 {% block head_description %}

+ 1 - 1
templates/page.html

@@ -1,7 +1,7 @@
 {% extends "base.html" %}
 
 {% block title %}
-{{ page.title }} · {{ super() }}
+{{ page.title }} {%if page.subtitle %} - {{ page.subtitle }} {% endif %} · {{ super() }}
 {% endblock title %}
 
 {% block head_description %}