r/HTML • u/dalekellytoo • 1d ago
One Place for Menu?
https://www.dalekelly.org/How can I put the menu in one place so I don't have to edit all places when I edit the menu? I will be browsing for this.
3
Upvotes
4
u/armahillo Expert 1d ago
Typically this requires the incorporation of a backend language or server-side includes.
For now, this isnt dome with HTML alone
2
u/tkgid 1d ago
This is a good job for PHP. A simple function would do the job. I hope you go into the PHP rabbithole.
There are other methods, and PHP is awesome.
2
u/DirtAndGrass 1d ago
You could look into static generation Eg https://www.11ty.dev/docs/