4 ms·
I use picocss for my personal site [1], which I just recently converted to plain html. I just realized that, with a bit of plain vanilla js, I can easily create
by MrGilbert 1y ago
I use picocss for my personal site [1], which I just recently converted to plain html. I just realized that, with a bit of plain vanilla js, I can easily create a header and footer for every page. I need to write some kind of markup anyways, so why not directly write html? Also, picocss comes with dark mode, which I personally prefer.
[1]: https://g5t.de https://g5t.de
- wishinghand 1y agoIf you're using Apache you could just use Server Side Includes and forget the JS.
- deleted 1y ago[deleted]
- MrGilbert 1y agoThat’s a neat idea! I’m using Nginx, but there’s also SSI support in it. Currently, I'm using Javascript to set the current page on the main nav. I might get away with conditional includes or similar. I’ll explore my options. Thank you!
- j45 1y agoIf simplicity is the goal, html can be inserted in other html using the embed or object tag, no JavaScript required. https://www.w3schools.com/TAGS/tag_embed.asp https://www.w3schools.com/TAGS/tag_embed.asp https://www.w3schools.com/TAgs/tag_object.asp https://www.w3schools.com/TAgs/tag_object.asp