From b554d06a04b598890925825f718200246953d2f0 Mon Sep 17 00:00:00 2001 From: Yan Lin Date: Wed, 4 Feb 2026 16:54:02 +0100 Subject: [PATCH] add chapter name display on pages --- sass/style.scss | 2 +- templates/page.html | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/sass/style.scss b/sass/style.scss index f072b6d..4dc11a7 100644 --- a/sass/style.scss +++ b/sass/style.scss @@ -123,7 +123,7 @@ ul, ol { margin-bottom: 0.5rem; } - time { + time, .chapter { color: var(--muted); font-size: 0.9rem; } diff --git a/templates/page.html b/templates/page.html index a5999e5..4ae94f5 100644 --- a/templates/page.html +++ b/templates/page.html @@ -8,9 +8,7 @@

{{ page.title }}

- {% if page.date %} - - {% endif %} +{% if page.extra.chapter %}{{ page.extra.chapter }} | {% endif %}{% if page.date %}{% endif %}
{% if page.content is containing("") %}