Ver código fonte

Adds article title in the <title>

Talha Mansoor 11 anos atrás
pai
commit
3391ae8a36
1 arquivos alterados com 4 adições e 0 exclusões
  1. 4 0
      templates/article.html

+ 4 - 0
templates/article.html

@@ -1,5 +1,9 @@
 {% extends "base.html" %}
 
+{% block title %}
+    {{ article.title }} - {{ super() }}
+{% endblock title %}
+
 {% block content %}
 {{ super() }}
 {{ article.title }}