added front matter handling for metadata, removed previous metadata hook. Changed handling for content