backport some changes from boostrap branch
close meta tags in main template