diff --git a/src/index.ts b/src/index.ts index f0a90ad..ee64332 100644 --- a/src/index.ts +++ b/src/index.ts @@ -191,6 +191,10 @@ const fetchOmnivore = async (inBackground = false) => { :where [?b :block/page ?p] [?p :block/original-name "${pageName}"] + [?b :block/parent ?parent] + [?parent :block/uuid ?u] + [(str ?u) ?s] + [(= ?s "${targetBlock.uuid}")] [?b :block/content ?c] [(clojure.string/includes? ?c "${article.slug}")]]` )