26. January 2014

A theme for Indian republic day

Since I have the know how to theme my blog, here is the Indian Republic Day theme. Its Open source and available at my github repository here. I will be sharing my themes for Wintersmith at this repository.

Happy republic day.

25. January 2014

Getting started with Wintersmith themes

I am getting more and more conversant with the Jade templating engine and Wintersmith. Which I hope, is, what was one of the intentions, of moving from Wordpress to Wintersmith. Well, trying my hands on to customise the theme, I found its extemely easy to just add another CSS to the layout template ie; layout.jade and start putting in the styles there. It can not be simpler than this. The base style is taken from the style definition at main.css. If you look at the layout.jade, it will look something as this.

link(rel='stylesheet', href='/css/main.css')

If you are following this blog, I have mentioned previously how to configure Wintersmith so as to make it working from any domain or subdomain. So the layout.jade in my case, looks as below.

link(rel='stylesheet', href=locals.url+'/css/main.css')

Whatever the condition may be, whether you are using default settings or my settings, the point is, just add another CSS file(theme.css) below the default CSS. So the default setting will be as this.

link(rel='stylesheet', href='/css/main.css')
link(rel='stylesheet', href='/css/theme.css')

In my case, I am using a theme CSS file as saumya.css and with my configuration change, it looks as this.

link(rel='stylesheet', href=locals.url+'/css/main.css')
link(rel='stylesheet', href=locals.url+'/css/saumya.css')

Now do the customisation in the theme.css.

Hope you understand the best practice of overriding styles than manipulating directly the original CSS file.

Happy theming.

24. January 2014

Want excitement, work with Freshers or even younger.

It is exciting to work with juniours and if you have never had an experience, try this. Which is highly recommended.
They can bring one or all of below.

  • Bring fresh ideas to the table.
  • Bring in energy
  • New ways of doing things
  • Challenge the established
  • Go the extra mile to prove it
  • Can surprise you by solving something which you never have thought
  • Bring in humanity
  • Less logical and more intuitional
  • Eager to learn

Well, I can go on and on. But the thing is, you have to be careful. Like all seniors are not helpful, not all young ones have the qualities.
If you are a good mentor, then make them conversant with the tools and do not tell them, how to do, at first. Ask them what to do ?, you will be surprised by the results, they produce.

Happy Pair-Programming.