Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Markdown with frontmatter #2

Open
cromedome opened this issue Nov 8, 2023 · 2 comments
Open

Markdown with frontmatter #2

cromedome opened this issue Nov 8, 2023 · 2 comments

Comments

@cromedome
Copy link

I was wondering if you considered using YAML frontmatter in Markdown before you chose to track metadata in a separate YAML file, and if so, why you opted for a separate YAML file instead. If you hadn't considered using frontmatter, @yanick has a great module for working with it (File::Serialize). I'd be happy to whip up a POC PR with it.

This is cool! Just started tinkering a bit with a revamped blog tonight.

@sukria
Copy link
Owner

sukria commented Nov 8, 2023

Thanks Jason, I just wasn't aware of this option!

This is a great idea and would simplify a bit more the process of editing content for Liteblog. Definitely a good idea. I don't see yet what this would imply in terms of parsing/processing on the Perl side but I'll be happy to work with you on this PR.

Maybe, we could even implement that as an option: Liteblog could look for the meta.yml file, and if not, would expect this YAML frontmatter in the Markdown file itself. It's quite easy: everything related to that is implemented in the Article class.

@cromedome
Copy link
Author

@sukria I like your approach. I got a little happy hacking time the next few days while I am traveling, I'll take a stab and get you a first draft of a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants