enhance: page graph will auto-refresh when redirecting to a new page

This commit is contained in:
Tienson Qin
2021-03-30 21:49:57 +08:00
parent c95dc0f604
commit 4132d9ed1f
5 changed files with 64 additions and 51 deletions

View File

@@ -76,10 +76,19 @@
:else
nil)]
(when (and
(string? page)
(not (string/blank? page)))
(string/trim page))))
(cond
(and
(string? page)
(text/block-ref? page))
(text/block-ref-un-brackets! page)
(and
(string? page)
(not (string/blank? page)))
(string/trim page)
:else
nil)))
(defn get-block-reference
[block]