-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add a newsletter Archetype #104
Conversation
Thank you. This seems helpful! I will try it out and let you know what I think... |
FYI, there is an open issue on this: We would usually have this branch be called |
Instead of having instructions in |
Sorry, I did not know about this issue (and I did not search for one....my bad). I linked this PR with this Issue. |
Ok. I do that. |
Thanks for this setup. |
@molinaro-m , I let @JeremyMcCormick lead the coordination/communication with the newsletter's editors, unless any of you want me to speak for this specific point (in this case, please send me by email their email address). @JeremyMcCormick , I have moved the instructions about the edition of newsletters in a separate MD file, as you've suggested. I have also added more information on how to edit the template. It is surely more technical, but I am sure it will be useful in the future ; few times already the newsletter layout/structure/content has evolved, so it may happen again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested locally and this looks great - I approve.
@gmantele Feel free to make minor adjustments/improvements before merging.
My only significant request is that we have a Make target like make newsletter [name]
which could be used to generate the page and automatically install/use the installed hugo binary.
If there is feedback on the template itself from Newsletter authors, we can incorporate this into future PRs. This looks fine as a starting point to me.
Very good suggestion 👍 It is now done. Note that no parameter is required with this |
This PullRequest aims to help the newsletter editors. It adds an Archetype for a newsletter ; in other words, it adds a template file for a newsletter.
To create a new newsletter using this template, just run:
./hugo-bin/hugo new content newsletter/XXX.md
.Then, just edit the resulting file
content/newsletter/XXX.md
and especially all content placeholders spread all over this file.I have added some instructions in
CONTRIBUTING.md
. I hope it will be useful. And of course, if information are missing there, or if you think it should written somewhere else, I can easily change that.What do you think about this solution? @JeremyMcCormick ? Deborah ?