From 233094db73eaa0772d2964d3d409643f08c0a207 Mon Sep 17 00:00:00 2001 From: Julio Biason Date: Mon, 30 Dec 2019 14:10:20 -0300 Subject: [PATCH] Keep the page title in the browser title too --- templates/index.html | 2 +- templates/page.html | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/templates/index.html b/templates/index.html index dd8a5d2..fb2d5f5 100644 --- a/templates/index.html +++ b/templates/index.html @@ -7,7 +7,7 @@ - {%- block title %}{{ config.title }}{% endblock title -%} + {%- block title %}[ {{ config.title }} ]{% endblock title -%} {{ head_macros::head(config=config) }} {%- if config.generate_rss %} diff --git a/templates/page.html b/templates/page.html index 9f3125e..99d87f2 100644 --- a/templates/page.html +++ b/templates/page.html @@ -1,5 +1,9 @@ {% extends "index.html" %} +{% block title %} + {{ super() }} {{ page.title }} +{% endblock %} + {% block content %}
{{ post_macros::header(page=page) }}