This is a beginner’s question that may just be related to Go and not Hugo, but I can’t tell the difference.
While browsing examples and forum posts I frequently stumble upon seemingly built-in functions, variables or methods that I can’t find any documentation about using my average google skills.
The latest example was a menu template someone had created and they had used range .Site.Menus.main.ByName
. Interesting, I thought. I didn’t know I could do that.
Trying to find out how “ByName” works and what other functions exist that could be helpful while building my menus, I felt like I am missing out on some secret club where people just whisper hidden Hugo functionality to each other. In the end I had to read the Hugo source code.
Is the simple answer that someone wrote this functionality without documenting it? Is there a automated hierarchical API documentation somewhere?