Customisation of planet to mirror an intranet RSS feed

To be able to provide a RSS feed for Planet Calibre, I had to do a mirroring of a section of my blog which runs on an intranet machine.

I’ve done that with planet, by adapting the provided templates.

The difficulty is that planet was using my local intranet machine’s URLs as permalinks for the articles, thus rendering the articles unavailable if the feed was to be used in other feeds or agregators.

The solution is to add html <a name="<TMPL_VAR date>"</a> like anchor before every item in the html rendered page, and produce the RSS output which would link the items to these <code>index.html#<tmpl_var date></tmpl_var> URLs. By doing this with a date format like date_format = %Y_%m_%d_%H_%M, it seems to be working fairly well.

I then have a web-accessible mirror of my intranet blog with valid permalink URLs for the items.

Leave a Reply

Your email address will not be published.