Yes, you are on the right track. If you modify the contentTemplate
variable assign to the below, it will use the created date of the draft instead of the current time:
let contentTemplate = `-- [[created|%d %B %Y %I:%M %p]]`
This is using template tags, there are many available, you call also add [[created_longitude]]
, [[created_latitude]]
in a format you prefer. You can get started with this article about using template tags.
You might be looking for something like the below, it sounds like:
let contentTemplate = `-- [[created|%d %B %Y %I:%M %p]], [[created_longitude]], [[created_latitude]]`