Articles tagged in pelican

  1. Absolute URLs in Feeds in Pelican

    I am still tinkering with Pelican 2 weeks after migrating this blog from WordPress. There are a few things just aren't right but fortunately it is written in Python, has a basic plugin architecture and is easy to mock around to produce the result I am looking for. One issue I had was absolute URLs in the feeds. I much prefer to write with relative URLs if possible, and previously wrote URL Absolutifier WordPress Plugin to fix up links in the RSS / Atom feeds. Googling around I couldn't find anything similar for Pelican so I decided to roll my own.

    Here it is. A bit hack'ish with monkey patching the feedgenerator library, but hey, it works :)

    Installation steps:

    1. Download the plugin file

    2. Save it to your plugins directory.

    3. Add 'urlabsolutifier' to PLUGINS in your

    That's it! If you are not sure how to install plugins for Pelican here is the doco. All your relative anchor tags and image tags will now have absolute URL in the feeds.

  2. Bye Bye WordPress, Welcome Pelican!

    A new era for Scott Yang's Playground -- I am moving this off WordPress (which I migrated over from Movable Type almost 10 years ago.

    WordPress, IMHO, is just getting too heavy as a blogging platform that it once was. It is now a full blown content management system that can probably be used to construct 90% of the websites out there. In fact it has got so complex and with plugins that do almost-everything under the sun, I don't feel like I can keep up with the frequency of all the updates. Not just the core, but also all the plugins that you have installed. Almost got burnt by this one here on an installed-but-not-used plugin that was just 2 versions out.

    Keeping the software updated also got harder, when you are not that into blogging anymore. With only 13 entries this year (and 10 from previous years) this blog is far from its hey days (500+ entries in 2004).

    Not to mention the comment spams. Yes Akismet caught a lot of them, but still plenty slipped through. I have no idea why so many people wish to converse on this dying blog - turns out all they want to do is to inject a spammy link.

    So that's it. I'm done here with WordPress and I am moving to statically generated website that I can just drop in some directory and forget. No, nothing to do with being one of the cool kids, but being a Python developer I naturally picked Pelican as my new site generator.

    So far so good,

    • Installation is trivial with virtualenv and pip.
    • I have to write a script that takes a WordPress export RSS to individual output files.
    • Templating is also easy with Jinja2 that's been used by many frameworks.
    • I have not yet finalised on the publishing work-flow, as I'm currently just rsync the output files to the web-server. git integration coming soon.

    So far so good.

    Certainly one of my hope for 2014 is getting back to blogging again. Writing keeps me thinking (rather than just being "busy" doing things), and there are so many things that are worthwhile getting recorded down.