]> git.0d.be Git - chloro.git/commitdiff
add note title in page <title>
authorFrédéric Péters <fpeters@0d.be>
Fri, 10 Apr 2020 08:28:35 +0000 (10:28 +0200)
committerFrédéric Péters <fpeters@0d.be>
Fri, 10 Apr 2020 08:28:35 +0000 (10:28 +0200)
chloro/phyll/templates/phyll/base.html
chloro/phyll/templates/phyll/note_detail.html

index aa0f2cff740907430fb4ab2b38daecfb7a9e9451..54a1f4a3b6d69003201111f114c9ef19f6ebe046 100644 (file)
@@ -3,7 +3,7 @@
   <head>
     <meta charset="utf-8"/> <!-- 🌱 -->
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
-    <title>Coin web de Frédéric Péters</title>
+    <title>{% block page-title %}Coin web de Frédéric Péters{% endblock %}</title>
     <link rel="stylesheet" type="text/css" href="/static/css/style.css">
     <link rel="alternate" type="application/atom+xml" title="Atom feed" href="/feed/atom" />
     {% block bottom-head %}
index 4c919c210dc846e07a21189e81fc3e0dee33c907..240929be09603a8ab27fc792929111c373689a40 100644 (file)
@@ -2,6 +2,7 @@
 {% load i18n %}
 
 {% block content-class %}post{% endblock %}
+{% block page-title %}{{ object.title }} - {{ block.super }}{% endblock %}
 
 {% block body %}
 <div>