enhance: yet another page-name sanity improve

This commit is contained in:
Junyi Du
2022-01-07 05:34:35 +08:00
committed by Tienson Qin
parent 7505b0dde6
commit e5dcb014e1
16 changed files with 63 additions and 54 deletions

View File

@@ -126,7 +126,7 @@
[page theme]
(let [dark? (= "dark" theme)]
(when-let [repo (state/get-current-repo)]
(let [page (string/lower-case page)
(let [page (util/page-name-sanity-lc page)
page-entity (db/entity [:block/name page])
original-page-name (:block/original-name page-entity)
tags (:tags (:block/properties page-entity))