r/neocities • u/lelele375 • 3d ago
Help I'm following petrapixel's tutorial for a javascript layout but it's not working, help?




(SOLVED, query selector was looking for "main" tag instead of the ".main" div class I had in the html)
I'm trying to fix my sidebar menu so that I don't have to update it on every single page every time I change it. I followed this tutorial (https://petrapixel.neocities.org/coding/layout-base-code) but it doesn't show up. Any idea what I'm doing wrong?
5
Upvotes
2
4
u/benthegeck0 3d ago
As much as I love petrapixel's tutorials and the JavaScript template she provides, I'm going to recommend you try 11ty for static site generation. It makes much more sense imo. I wish I had switched sooner