MyBlog allows to create blog post as org files and then publish it on blogger executing a small script in python. The title, and the tags are managed automatically by the script through the package orgparse (requirement). The export from Org to HTML is made by Emacs itself (C-c C-e). All the process is completely unpainful and even you not need to touch your browser to publish your post, cool eh!?.
- Python
- Poetry
- Emacs
- Write your post on a org file on the
draftfolder. - Put your google credential file (a
jsonfile that google provide it) on theconfigfolder (you need to create it) name it asclient_secret.json. - When you are sure to the post is ready to be publish run it.
- How to run it? On a terminal run (or an async shell command with key-shortcut
M-&):
poetry install <---- only if your firstime running the project
poetry run publish-blog myorgfile.orgAnd that’s it.
If you wanna a front image on your post, you can link it as image (should need image extension) in this form: [ [ image url ] ] (without spaces) but if you have a web link to the image that doesn’t have image extension on the url you need to put it as HTML tag.
The script takes the tags from your org file on #+TAGS: tag1 tag2 tag3 use it. Are many positive arguments to use it, but here is the good one: if don’t use tags on your org file the script could fail.