Depricated
I did a comprehension renaming to the Pelican source. I got tired of the annoyance created by the misnaming of blog posts as blog articles. Blog posts are NOT articles. They are posts! Articles are much more in depth and are much more likely to be evergreen content (no date of publication). I created a python script to do all the renaming.
It is called apost.py and apost3.py for python3. The only difference between them is the debug print statements and raw_input renamed to input.
This effects ONLY files with extensions .py and .html for the source and the templates.
This script renames all occurances of ‘article’, ‘Article’ and ‘ARTICLE’ to ‘post’, ‘Post’ and ‘POST’ and replaces the word ‘article’ to ‘post’ in filenames with those file types.
The script runs fine on the Pelican source (run from within the pelican folder) and on a projects source.
I’m considering renaming all ‘page’ words to ‘article’, but that might be overkill. ‘Page’ is not as bad a name choice for ‘articles’ as ‘articles’ is for ‘posts’.
Irritated me every time I looked at the code.
Pelican is update so slowly now (years between revisions) and all it takes is running the script if I upgrade!
The script creates a log file ‘rlog.txt’ with each changed line. * I updated the script for better logging - still need to copy to linux source and project* If the logging becomes unnecessary, the code could be changed to refactoring each file all at once rather than line by line.