-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
Hugo like archetypes #67
Comments
This is interesting - Fornax itself is just an engine, all generation logic is in loaders and generators. So I'm not sure if it should add any hardcoded file templates - those may work for built-in blog template but may be totally useless when someone customizes their loaders. A more interesting idea would be giving templates (like our blog template) a possibility of defining items that could be generated. So for example in Saturn repo I could add |
I do believe that’s how it’s implemented in Hugo. The archetypes are basically a file within a template that the cli duplicates. It would also probably be good to introduce an option to do something like |
I've dealt with this using a new-post script which I invoke with |
Yeah, seems like having a way for fornax to invoke a script similar to the one @recumbent wrote might be a good way to solve this? Or maybe invoking a script from fsi is good enough and it doesn't need to be put in fornax itself, perhaps just provide a example script with the template? |
Is your feature request related to a problem? Please describe.
In Hugo archetypes are templates for .md files that will be created in the posts directory. They make it easy not new post, for example helping to structure the url consistently.
Describe the solution you'd like
Command line something like:
template would be kept in "archetypes"
I would be will to implement this, but wanted discuss the solution before starting.
The text was updated successfully, but these errors were encountered: