fix: don't display hierarchy for file pages

This commit is contained in:
Tienson Qin
2021-06-29 19:16:39 +08:00
parent 4457be5e45
commit 6f23c6c39b
3 changed files with 14 additions and 5 deletions

View File

@@ -274,10 +274,7 @@
(concat title body))
(let [refs (remove string/blank? @refs)
children-pages (->> (mapcat (fn [p]
(when (and (string/includes? p "/")
(not (string/starts-with? p "../"))
(not (string/starts-with? p "./"))
(not (string/starts-with? p "http")))
(when (text/namespace-page? p)
(util/split-namespace-pages p)))
refs)
(remove string/blank?))