12. January 2014

Wintersmith configuration

Wintersmith is perfect on creating a static site, but the problem arises when one needs to configure it to meet a particular need. I think, thats true for any framework.
The problem I encountered is, putting the static blog in any domain or sub-domain. Wintersmith generates urls which are default to root / and to change it to any domain means one has to change it to the domain one wishes to put the site on. Thats as simple as that. Well, for most parts. Then, there are places where it creates a relative URL.

To solve this, I looked inside the templates and configuration. Wintersmith reads from the config.json file to get the base URL and make the other URLs. So I changed the url to my desired URL and added another parameter to the locals object of the config.json named folder, Then changed the URL in templates, from / to locals.url and at some places to locals.url+'/'+locals.folder and thats it. Its now perfectly alright to take my site to wherever I want. All I need to do is change these variables and build the site again with Wintersmith build command.
Is this the rightway? Well, seriously I do not know, but it works.

Happy Hacking !

11. January 2014

Finally added Disqus

The final technical integration to make the blog a conversation engine, is done. Can not imagine how far the blogging has come and how easy now it is to setup things. Yes can feel the new internet now. Remembering the back days, when I created a static HTML page and served through internet. Its a full circle now. Though the generation of the static pages are automated, but the thing is we are back to decentralised internet.

Cheers.