typo, hide counter on empty pages, add short title
This commit is contained in:
+1
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user