I am receiving the following Warning with Hugo v0.55.6: Data for key X in path X is overridden by higher precedence data already in the data tree
from https://github.com/gohugoio/hugo/blob/d6ca728ff3c9e149d7d4ae2c5a3096e748ec0cc7/hugolib/hugo_sites.go#L871 .
However, it would appear that a Warning message should not be generated in this scenario as the user is purposely overriding a theme’s data file with their own version of it, as per the Hugo docs:
Data Files can also be used in Hugo themes but note that theme data files follow the same logic as other template files in the Hugo lookup order(i.e., given two files with the same name and relative path, the file in the root project
data
directory will override the file in thethemes/<THEME>/data
directory).
What’s the solution here? Change the Hugo message to Info level rather than Warning? Or is there some other approach to let the user override/customize a theme’s data file without incurring a Warning message?