From 05c2d3d0014e7b775aa0a3d752f34f0d46bcec21 Mon Sep 17 00:00:00 2001 From: David Crespo Date: Sun, 5 Jan 2025 12:30:43 -0500 Subject: [PATCH] Set title for news index and posts (#56) --- templates/base.html | 4 +++- templates/news.html | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/templates/base.html b/templates/base.html index 34e2ad5..0c4427d 100644 --- a/templates/base.html +++ b/templates/base.html @@ -4,7 +4,9 @@ - {{ config.title }} + + {% block title %}{% if page.title %}{{ page.title }} | {% endif %} {{ config.title }}{% endblock %} + diff --git a/templates/news.html b/templates/news.html index cbee754..2eb39ef 100644 --- a/templates/news.html +++ b/templates/news.html @@ -1,5 +1,7 @@ {% extends "base.html" %} +{% block title %}News | {{ super() }}{% endblock %} + {% block content %}