Controlling Pelican Output Files

• 2 min read
pelican 
By default Pelican generation process results in a few files. Besides the site's homepage, a page each showing the list of articles, list of tags, list of categories and a page with a list of authors are produced. Some sites may want to suppress some of these files. For instance …

Search Engine Optimization

• 4 min read
seo 
These are some of the notes from my research on SEO techniques for a website. 'Notes', and not a definitive guide. This is based on the guidelines outlined in Google's own docs and therefore is primarily geared towards improving a site's ranking in Google search. Make sure your site is …

Localizing Pelican Sites

Localization Localization is provided via the i18n_subsites plugin. As mentioned before, localization is provided via the plugin i18n_subsites. This plugin employs jinja2.ext.i18n to achieve this. Localization works at two specific levels: Theme templates. Templates often contain hardcoded text and this needs to be localized. This is espcially the …

Brief Overview of Pelican

Recently I switched this website from Django to a static site. This article gives an overview of the core concepts of Pelican, covering areas that are not directly captured in the official docs. This is written primarily to solidify my own understanding and also act as a reference for myself …

How to programmatically emulate Appple special keys such as media navigation & power keys

Media keys along with some other keys are not handled through the standard apple keyboard event subsystem. They are treated differently, and therefore emulating them from software requires special code (EventTap won't work!). Here's a function that does this: void HIDPostAuxKey(uint32_t key, bool down) { @autoreleasepool { NSEvent* ev = [NSEvent otherEventWithType …