Giter Club home page Giter Club logo

Comments (4)

farling42 avatar farling42 commented on September 4, 2024 1

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.

from obsidian-import-json.

farling42 avatar farling42 commented on September 4, 2024

Joining the tags together in handlebars is {{join tags ", "}}

from obsidian-import-json.

KINOTheProducer avatar KINOTheProducer commented on September 4, 2024

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}}

from obsidian-import-json.

farling42 avatar farling42 commented on September 4, 2024

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.

from obsidian-import-json.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.