fix: namespace pages are not created when using search to create

This commit is contained in:
Tienson Qin
2021-06-24 10:55:15 +08:00
parent 3138ab08f7
commit 2f3811cbef
3 changed files with 21 additions and 24 deletions

View File

@@ -278,8 +278,7 @@
(not (string/starts-with? p "../"))
(not (string/starts-with? p "./"))
(not (string/starts-with? p "http")))
;; Don't create the last page for now
(butlast (string/split p #"/"))))
(string/split p #"/")))
refs)
(remove string/blank?))
refs (->> (distinct (concat refs children-pages))