fix: several issues related to graph

fixed position: sticky not working on safari
This commit is contained in:
Tienson Qin
2021-04-18 10:54:37 +08:00
parent 8f6505d04b
commit dcf37edc10
8 changed files with 48 additions and 26 deletions

View File

@@ -265,7 +265,10 @@
(concat title body))
(let [ref-pages (remove string/blank? @ref-pages)
children-pages (->> (mapcat (fn [p]
(if (string/includes? p "/")
(when (and (string/includes? p "/")
(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 #"/"))))
ref-pages)