This repository hosts the source code of tootips.com. Tootips is a blog centered around the world of Linux and open source applications in general. It was started back in 2012, and was recently migrated from Blogger to Jekyll. This installation uses a forked version of the notorious Minimal Mistakes' Jekyll theme.
During the migration process, I used the builtin Jekyll Blogger importer to import my old posts from the Blogger platform to Jekyll.
I also wrote a python script post_parser.py
to batch process the imported Blogger posts so that they will be compatible with the new theme. You can find this script in the _scripts
directory.
The script does the following:
- It converts Blogger thumbnail links into full size image links using regular expressions (of course xD)
- It inserts those full size image links as teaser images into their respective posts
- It scraps Blogger posts' original links to extract the meta description and then inserts it as the excerpt in the imported posts
- It performs some ImageMagick trickery on these full size images to create fancy header images for every posts
The ImageMagick part of the script takes a post image like this:
It then combines it with this background image:
The final result is a nice looking large image which can be used as a header image: