typo, hide counter on empty pages, add short title

This commit is contained in:
2026-06-07 16:22:00 +02:00
parent 334776da5a
commit a525fe60dd
6 changed files with 21 additions and 17 deletions
+1 -1
View File
@@ -92,7 +92,7 @@
let chapter-locs = query(heading.where(level: 1))
let is-chapter-page = chapter-locs.any(h => counter(page).at(h.location()).first() == pg)
if not is-chapter-page {
if chapter-locs.len() == 0 {} else if not is-chapter-page {
// Tytuł bieżącego rozdziału do nagłówka
let prev = query(heading.where(level: 1).before(here()))
let ch-label = if prev.len() > 0 {