Giter Site home page Giter Site logo

Comments (4)

scottashipp avatar scottashipp commented on July 20, 2024

Hi @Xiangze-Li ! I'm not too familiar with this use case. Can you explain further? Why would markdown files have YAML front matter? noted explicitly supports Markdown only right now, like the About mentions:

Lightweight CLI for taking markdown notes . . .

But if there is a use case where not having the new lines added in is better for some users, we can probably incorporate this in the next release into a config option?

from noted.

Xiangze-Li avatar Xiangze-Li commented on July 20, 2024

Thanks for replying! I read a blog about use noted to take notes then use hugo or other tools to generate a website from all the md files. With YAML front matter, I can add some metadata to the pages, like:

---
author: XXX
date: TIMESTAMP
---

# HEADERTEXT

If there's no leading newline, everything will work just fine.

Thanks again!

from noted.

scottashipp avatar scottashipp commented on July 20, 2024

@Xiangze-Li Hi! Sorry for the delay here. We had a holiday on Monday in the US so I was gone over the weekend.

OK so it sounds like you just need to configure a custom template file for your use case. This is already supported by noted! 🎉

Please refer to the section on custom configuration where you will set up a .notedconfig file with a NOTED_TEMPLATE_FILE property. The value of this property should be the path to your own template file. It explains it all in the link.

Let me know if you have any questions or any issues with it.

from noted.

Xiangze-Li avatar Xiangze-Li commented on July 20, 2024

Hi! I tried the custom template config again, it worked this time. I must have made some mistakes last time I edit the template.

Sorry for these trouble. Many thanks for your assistance! And wish you a happy holiday!

from noted.

Related Issues (3)

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.