Bug fix: correct layout metadata based on content detail