first commit
This commit is contained in:
20
pages/LogSeqFunctions.md
Normal file
20
pages/LogSeqFunctions.md
Normal file
@@ -0,0 +1,20 @@
|
||||
- #+BEGIN_QUERY
|
||||
{:title [:h3 "Orphaned empty page files"]
|
||||
:query [:find (pull ?p [*])
|
||||
:where
|
||||
[?p :block/file _]
|
||||
[?p :block/name ?name]
|
||||
(not [(clojure.string/starts-with? ?name "hls__")])
|
||||
[(missing? $ ?p :block/namespace)]
|
||||
(not
|
||||
(or
|
||||
[?b :block/refs ?p]
|
||||
(and
|
||||
[?b :block/page ?p]
|
||||
(not [?b :block/content ""])
|
||||
)
|
||||
)
|
||||
)
|
||||
]
|
||||
}
|
||||
#+END_QUERY
|
||||
Reference in New Issue
Block a user