Closed KINOTheProducer closed 7 months ago
You don't need the outer #each.
The importer will iterate over each element in the outer array in the JSON data and pass each individual array element to the handlebars parser.
Joining the tags together in handlebars is {{join tags ", "}}
Thank you @farling42 - that made the import go through!
It seems the beginning of the markdown has the title listed again, and I'm trying to remove that duplicated data - just leaving the filename as the header. It appears like so:
This is my current Handlebars template, but again, feel as though this may be incorrect. Would I need a Handlebar Helper for this?
**Tags:** {{#each tags}}#{{this}} {{/each}}
{{{{#with title as |t|}}
{{#with (replace markdown (concat "# " t "\n") "") as |content|}}
{{content}} {{/with}} {{/with}}}}
_Created:_ {{created}}
_Updated:_ {{updated}}
The first occurrence at the top of your image is the name of the note file itself. (There might be an Obsidian option to not display the note name at the top of each page.)
So you might not need to include the title at the start of your template.
Hey there, sorry for the bother, I'm trying to get this working to import a JSON file with about 75 notes from Mem.ai to Obsidian, but I've never used Handlebar files for something like this, so I feel like I might be doing something wrong here.
This is an example of how the Mem notes are saved in the JSON:
And this is my Handlebars.md file:
I've tried this setup in the importer to no avail. I'm sure my Handlebars is incorrect and would love some insight if that's the case or not:
Thank you so much for making this importer in the first place!