mirror of
https://github.com/logseq/logseq.git
synced 2026-05-03 10:26:35 +00:00
using zotero item key as filename
This commit is contained in:
@@ -690,6 +690,19 @@
|
||||
(when (db/page-empty? (state/get-current-repo) (:db/id page))
|
||||
(api-insert-new-block! "" {:page page-name})))))
|
||||
|
||||
(defn page-properties-block
|
||||
[page format properties]
|
||||
(let [content (property/insert-properties format "" properties)]
|
||||
{:block/pre-block? true
|
||||
:block/uuid (db/new-block-id)
|
||||
:block/properties properties
|
||||
:block/left page
|
||||
:block/format format
|
||||
:block/content content
|
||||
:block/parent page
|
||||
:block/unordered true
|
||||
:block/page page}))
|
||||
|
||||
(defn default-properties-block
|
||||
[title format page]
|
||||
(let [properties (common-handler/get-page-default-properties title)
|
||||
|
||||
Reference in New Issue
Block a user