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
These are all minor, and should probably be separated into individual issues at some point, but for now...
1) If a content adapter creates p1, attempting to create p1.md with hugo new causes a panic.
2) If p1.md exists, and a content adapter creates p1, the content adapter wins. It seems to me it should be the other way around; p1.md should override the content adapter. For example, a module provides content, and you need to override one of the pages provided by the module. See comments below.
3) If p1.md exists, and a content adapter creates p1, the --printPathWarnings flag does not report a page collision. See comments below.
The text was updated successfully, but these errors were encountered:
The behaviour here is undefined; if you see a winner here, that is by chance. We sort the directories before we process them, but p1.md and _content.gotmpl is processed in separate Go routines, so who's the winner of p1.md and p1 from some _content.gotmpl is undefined.
jmooring
changed the title
Miscellaneous improvements to content adapters
Prevent panic when creating new content if also created by content adapter
May 16, 2024
These are all minor, and should probably be separated into individual issues at some point, but for now...
1) If a content adapter creates p1, attempting to create p1.md with
hugo new
causes a panic.2) If p1.md exists, and a content adapter creates p1, the content adapter wins. It seems to me it should be the other way around; p1.md should override the content adapter. For example, a module provides content, and you need to override one of the pages provided by the module.See comments below.3) If p1.md exists, and a content adapter creates p1, theSee comments below.--printPathWarnings
flag does not report a page collision.The text was updated successfully, but these errors were encountered: