Automatically generate links in header


I want to know if it is possible to automatically generate links to each page on a website without having to manually update a YAML list or keep front matter in each html file. For example, if I had four html files in my website, it would automatically appear as links in the header. I’ve done some research but all I could find is by manually creating a YAML file and updating it. Is it possible to automatically generate a header this way, and if not, what is the next best thing?


not sure what you mean by header - the top of the page nav?

you can loop thru pages or posts and do whatever you want - make a link is no problem. having front matter allows you more flexibility but is not required.

I gave an example of a sitemap here: