You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using Resources.ByType to aggregate all content files within subdirectories making up a site. This way splitting of content files is enabling a page being made up of various fragments.
Fragments located in [page]/[subdirectory]/index.md don't work since Hugo 0.56 doesn't recognize [subdirectory]/index.md as page resources anymore. Same for 0.57.
Current workaround is to create the fragment as [page]/fragment.md in addition to [subdirectory].
Basically moving index.md to ../fragment.md. That way it is recognized and the theme still works.
This feels like a regression. If this was a misusage, happy to get this documented and fixed on our side.
We are using
Resources.ByType
to aggregate all content files within subdirectories making up a site. This way splitting of content files is enabling a page being made up of various fragments.Fragments located in [page]/[subdirectory]/index.md don't work since Hugo 0.56 doesn't recognize [subdirectory]/index.md as page resources anymore. Same for 0.57.
Current workaround is to create the fragment as [page]/fragment.md in addition to [subdirectory].
Basically moving index.md to ../fragment.md. That way it is recognized and the theme still works.
This feels like a regression. If this was a misusage, happy to get this documented and fixed on our side.
Specifically this came up with the Syna Theme.
This is also breaking the demo: https://themes.gohugo.io//theme/syna/fragments/faq/
The text was updated successfully, but these errors were encountered: