Update template code according to the documentation

Also convert CSS to SASS