zine icon indicating copy to clipboard operation
zine copied to clipboard

Command for generating a new page with mandatory frontmatter prefilled

Open MFAshby opened this issue 4 months ago • 0 comments

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?

MFAshby avatar Mar 31 '24 19:03 MFAshby