Simple Pelican Blog Post Template Generator

I just finished a simple script that helps generate Pelican blog posts by printing out some reStructuredText, in the format Pelican expects, based on the given input parameters. You can use it simple as in the following listing:

./tools/ "My New Post"

And it will generate the reStructuredText header file that Pelican expects and dump it to stdout, where you are free to copy+paste into your desired editor. It includes options for writing to an output file, attempting to get the current author's name from the environment, generating dates, and support for categories and tags. The command I used to generate this post's template was:

./ "Simple Pelican Blog Post Template Generator" --category Development --tags "python, pelican" -f simple-pelican-blog-post-template-generator.rst

Get the script on my GitHub.

Ben Snider

Benjamin Snider

Hi! 👋 I'm Ben and I like to write about technical and nerdy things. Historically about Swift and iOS. But, I've recently started a masters program in computer science (Georgia Tech's OMSCS), so the content here may pivot as such.  Get @me!