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

Command for generating a new page with mandatory frontmatter prefilled #34

Open
MFAshby opened this issue Mar 31, 2024 · 0 comments
Open

Comments

@MFAshby
Copy link
Contributor

MFAshby commented Mar 31, 2024

What:

Some kind of automation which generates a new page with the appropriate frontmatter populated. Similar to hugo new

Why:

There's a little bit of tedious copy+paste when writing a new page: inputting mandatory frontmatter. Specifically the current date and author never change in my case ('now' and 'me'), and most of my content uses the same layout.

How:

Maybe an extra CLI like zig build newpage, it could accept flags or request interactive input for the title & description, layouts could be a multi-choice from the available files in '/layouts' folder, author could default to the current login shell user's full name?

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

1 participant