Using yaml-front-matter for getting page metadata

+ some fix and improvements