Restrict the new type layout resolution to page and section kinds
Restrict the new type layout resolution to page and section kinds

Will have to test and evaluate this a little.

See  #4891

gohugoio/hugo,anthonyfok/hugo,mdhender/hugo,gohugoio/hugo,fedelibre/hugo,gohugoio/hugo,anthonyfok/hugo,mdhender/hugo,anthonyfok/hugo,fedelibre/hugo,fedelibre/hugo,mdhender/hugo,mdhender/hugo,fedelibre/hugo