fix recursion and filename priority
parse metadata on each page
fix issue where build fails if no metadata is present