From abc168257ef64350c94fb13a29daab017b27e8ec Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Mon, 21 May 2018 21:03:21 +0200 Subject: [PATCH] Better title on the website --- templates/admin.html | 1 + templates/followers.html | 1 + templates/following.html | 1 + templates/layout.html | 2 +- templates/login.html | 1 + templates/new.html | 1 + templates/note.html | 3 ++- templates/stream.html | 1 + templates/tags.html | 1 + 9 files changed, 10 insertions(+), 2 deletions(-) diff --git a/templates/admin.html b/templates/admin.html index 90e11c7..e573e02 100644 --- a/templates/admin.html +++ b/templates/admin.html @@ -1,5 +1,6 @@ {% extends "layout.html" %} {% import 'utils.html' as utils %} +{% block title %}Admin - {{ config.NAME }}{% endblock %} {% block content %}
{% include "header.html" %} diff --git a/templates/followers.html b/templates/followers.html index c4d03e2..e4f43a1 100644 --- a/templates/followers.html +++ b/templates/followers.html @@ -1,5 +1,6 @@ {% extends "layout.html" %} {% import 'utils.html' as utils %} +{% block title %}Followers - {{ config.NAME }}{% endblock %} {% block header %} {% endblock %} {% block content %} diff --git a/templates/following.html b/templates/following.html index c783133..83e8b0d 100644 --- a/templates/following.html +++ b/templates/following.html @@ -1,5 +1,6 @@ {% extends "layout.html" %} {% import 'utils.html' as utils %} +{% block title %}Following - {{ config.NAME }}{% endblock %} {% block header %} {% endblock %} {% block content %} diff --git a/templates/layout.html b/templates/layout.html index 25f3880..648c06b 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -4,7 +4,7 @@ -{{ config.USERNAME }} +{% block title %}{{ config.NAME }}{% endblock %} - microblog.pub diff --git a/templates/login.html b/templates/login.html index 2c16998..7e3cc1c 100644 --- a/templates/login.html +++ b/templates/login.html @@ -1,5 +1,6 @@ {% extends "layout.html" %} {% import 'utils.html' as utils %} +{% block title %}Login - {{ config.NAME }}{% endblock %} {% block header %} {% endblock %} {% block content %} diff --git a/templates/new.html b/templates/new.html index 2e73f38..572eb61 100644 --- a/templates/new.html +++ b/templates/new.html @@ -1,5 +1,6 @@ {% extends "layout.html" %} {% import 'utils.html' as utils %} +{% block title %}New - {{ config.NAME }}{% endblock %} {% block content %}
{% include "header.html" %} diff --git a/templates/note.html b/templates/note.html index 55bdfa2..9311c43 100644 --- a/templates/note.html +++ b/templates/note.html @@ -1,12 +1,13 @@ {% extends "layout.html" %} {% import 'utils.html' as utils %} +{% block title %}{{ config.NAME }}: "{{ note.activity.object.content | html2plaintext | truncate(50) }}"{% endblock %} {% block header %} - + diff --git a/templates/stream.html b/templates/stream.html index 4759ae0..9a0cff7 100644 --- a/templates/stream.html +++ b/templates/stream.html @@ -1,5 +1,6 @@ {% extends "layout.html" %} {% import 'utils.html' as utils %} +{% block title %}Stream - {{ config.NAME }}{% endblock %} {% block content %}
{% include "header.html" %} diff --git a/templates/tags.html b/templates/tags.html index fc02452..0df993c 100644 --- a/templates/tags.html +++ b/templates/tags.html @@ -1,5 +1,6 @@ {% extends "layout.html" %} {% import 'utils.html' as utils %} +{% block title %}#{{ tag }} - {{ config.NAME }}{% endblock %} {% block header %}