reorganize page titles (stub)
authorJan Szejko <jan.szejko@gmail.com>
Mon, 11 Apr 2016 15:33:12 +0000 (17:33 +0200)
committerJan Szejko <jan.szejko@gmail.com>
Mon, 11 Apr 2016 15:33:12 +0000 (17:33 +0200)
src/wolnelektury/templates/base.html
src/wolnelektury/templates/superbase.html

index fac9319..345b80f 100644 (file)
@@ -1,4 +1,4 @@
 {% extends "superbase.html" %}
 
 
-{% block ogtitle %}{% block titleextra %}{% endblock %}{% endblock %}
+{% block ogtitle %}{% block titleextra %}{{ page_title }}{% endblock %}{% endblock %}
index 139fc16..af9df97 100644 (file)
@@ -12,7 +12,7 @@
         <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
         <meta name="application-name" content="Wolne Lektury"/>
         <meta property="og:site_name" content="Wolne Lektury"/>
-        <meta property="og:title" content="{% block ogtitle %}{% endblock %}"/>
+        <meta property="og:title" content="{% block ogtitle %}{{ page_title }}{% endblock %}"/>
         <meta property="og:type" content="{% block ogtype %}website{% endblock %}"/>
         <meta property="og:image" content="{% block ogimage %}{{ FULL_STATIC_URL }}img/wiatrak.png{% endblock %}"/>
         <meta name="description"
@@ -20,7 +20,7 @@
         {% block ogextra %}{% endblock %}
 
         <title>
-            {% block title %}{% trans "Wolne Lektury" %} :: {% block titleextra %}{% endblock %}{% endblock %}</title>
+            {% block title %}{% block titleextra %}{{ page_title }}{% endblock %} :: {% trans "Wolne Lektury" %}{% endblock %}</title>
         <link rel="icon" href="{% static 'img/favicon.png' %}" type="image/png"/>
         <link rel="search" type="application/opensearchdescription+xml" title="Wolne Lektury"
               href="{% static 'opensearch.xml' %}"/>