Skip to content

Interactive blog post generator #1583

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

Closed
senekor opened this issue Apr 17, 2025 · 0 comments · Fixed by #1588
Closed

Interactive blog post generator #1583

senekor opened this issue Apr 17, 2025 · 0 comments · Fixed by #1588

Comments

@senekor
Copy link
Contributor

senekor commented Apr 17, 2025

Blog post authors have to keep a couple things in mind, especially when it comes to the front matter. For now, we try to document this in the readme. That puts the burden on our authors.

Instead, we could have a little program that prompts authors interactively when they're creating a new post.

There is a crate called inquire or something that should make this nice.

With a cargo alias (inspired by cargo xtask) authos could run e.g. cargo blog to generate a new post.

Questions might include:

  • title (then auto-generate slug and filename from it)
  • date (placeholder if unknown)
  • inside-rust yes/no
  • release post (-> auto-generate aliases)
  • team (if yes, also prompt for url)

At the end, valid usable front matter should be generated with minimal effort from the author.

Lastly, as a bonus, the generated post could include some boilerplate markdown that shows all the features available. (I for one always forget how to do footnotes in markdown)

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

Successfully merging a pull request may close this issue.

1 participant