From fd52d88d3e80b8a065c54b906752a4e825ad2b9d Mon Sep 17 00:00:00 2001 From: vac Date: Sat, 23 Mar 2024 14:55:17 +0800 Subject: [PATCH] feat: display section title if provided --- templates/partials/header.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/templates/partials/header.html b/templates/partials/header.html index 2f777804..ec076cc7 100644 --- a/templates/partials/header.html +++ b/templates/partials/header.html @@ -8,7 +8,7 @@ {% if page.extra.meta %} {% for data in page.extra.meta %} - {% if page.title %} {{ page.title }} + {% elif section.title %} {{ section.title }} {% elif config.title %} {{ config.title }} {% else %} Post {% endif %} @@ -146,4 +147,4 @@ {% endfor %} {% endif %} - \ No newline at end of file +