Add Liquid conditionals for post categories and demos layout

Signed-off-by: Thomas Sturge <tomsturge@googlemail.com>