Excluding original photos from Page Resources from Compiling in public folder

A solution to this problem was given to me in Metadata and assets vs page resources so I thought it could help others who find this question.

A _build option was added that can be used to avoid any automatic publishing of page level resources. cf https://gohugo.io/content-management/build-options/

This can be used to exclude the original photos from Page Resources from Compiling in the public folder.

1 Like