Add article title to page title

This commit is contained in:
Gabriel Augendre 2020-08-17 13:30:41 +02:00
parent c6e0837b1c
commit ecca5f28d7
3 changed files with 7 additions and 1 deletions

View file

@ -1,5 +1,8 @@
{% extends 'articles/base.html' %}
{% block title %}
{{ article.title }}
{% endblock %}
{% block content %}
<article>
<h1>{{ article.title }}{% if article.status != article.PUBLISHED %} ({{ article.status }}){% endif %}</h1>

View file

@ -1,5 +1,8 @@
{% extends 'articles/base.html' %}
{% block title %}
{{ title }}
{% endblock %}
{% block content %}
<h1>{{ title }} list</h1>
{% for article in articles %}

View file

@ -3,7 +3,7 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Gab's Notes</title>
<title>{% block title %}Home{% endblock %} | Gab's Notes</title>
<link rel="stylesheet" href="{% static 'style.css' %}" type="text/css">
<link rel="alternate" type="application/rss+xml" title="Gab's Notes » Feed" href="https://gabnotes.org/feed/">
</head>