From 566b8e2bc47adddda93aaf4cee509448e7204cfb Mon Sep 17 00:00:00 2001 From: Jonni Liljamo Date: Tue, 22 Oct 2024 00:51:11 +0300 Subject: [PATCH] feat: set page title --- content/_index.md | 1 - templates/layouts/base.html | 7 +++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/content/_index.md b/content/_index.md index c1c349a..fe08605 100644 --- a/content/_index.md +++ b/content/_index.md @@ -1,5 +1,4 @@ +++ -title = "Index" sort_by = "weight" template = "index.html" +++ diff --git a/templates/layouts/base.html b/templates/layouts/base.html index 687c6f2..b13ede6 100644 --- a/templates/layouts/base.html +++ b/templates/layouts/base.html @@ -10,6 +10,13 @@ + {% if this.title %} + {{ this.title }} + {% else %} + {{ config.title }} + {% endif %} + + -- 2.44.1