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

Generating a new blog post? #164

Open
elliot-nelson opened this issue Dec 17, 2023 · 1 comment
Open

Generating a new blog post? #164

elliot-nelson opened this issue Dec 17, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@elliot-nelson
Copy link

Thanks for all your work on this project btw!

I'd like to be able to sit in my blog project and type npm run new-post, and have it spit out content/blog/new-post/new-post.md, with the frontmatter date and title already set up, and pop open my editor so I can start typing.

I'm sure I can write up my own hack script to do this, just curious if there was a "recommended" way to do this in an Eleventy project.

@rdela
Copy link

rdela commented Sep 9, 2024

This conversation on Mastodon may be of interest: https://mastodon.social/@rdela/112883508899548187

Mentions https://github.com/11ty/create and the bash script I use on my site (still on Gatsby but switching to Eleventy soon): https://github.com/rdela/rdela.com/blob/trunk/new.sh

@11ty/create should work in a npm script, or maybe a shell script works better?

@zachleat zachleat added the enhancement New feature or request label Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants