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

Add pelican-article script to generate new articles from the command line #6

Open
luigibertaco opened this issue May 29, 2020 · 5 comments

Comments

@luigibertaco
Copy link

luigibertaco commented May 29, 2020

Issue created based on this issue (#1410) from the pelican repo.

From the past years, several issues and some PRs were open for the need of an article generator script on the Pelican repo. Also, some pelican users have decided to write their own script to address their specific needs.

I am coding a generic solution to add this feature to the pelican-tools library as discussed on the above mentioned issue.

@justinmayer
Copy link
Member

Thanks for working on this, Luigi. I think it would be nice if the pelican-post command, or whatever it ends up being named, would support the creation of both chronological content ("articles") and non-chronological content ("pages"). Just a suggestion! 😁

@luigibertaco
Copy link
Author

That's a good point. I will have a look at it to see how much it would change what I am doing.
If it is not too much, I may include it on the same PR. Otherwise, I am happy to improve it on a new one.

@luigibertaco
Copy link
Author

I just realise it is pretty much the same, except the folder it is saved on. Is there any metadata that differs? I couldn't find any on the documentation.

It also makes me wonder what would be a good name for the script. pelican-article or pelican-post are not good names for a pages generator. And pelican-page doesn't work well for articles.

I am thinking about pelican-new-content but I am not really sure, please let me know if you have other ideas.

@justinmayer
Copy link
Member

Articles must have a "date" meta-data field, whereas pages do not.

Naming is hard. Maybe pelican-content ?

@avaris
Copy link
Member

avaris commented May 29, 2020

pelican-new? or is it to ambiguous?

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

3 participants