add bad template file error and code folding
use flexbox to size the editor
Merge branch 'template' of https://github.com/jamessynge/pencilcode-site into template