Files
LogSeqDB/pages/LogSeqFunctions.md
2025-12-11 06:26:12 -08:00

20 lines
480 B
Markdown

- #+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