i finally decided to stop being lazy and refactor this website to use php includes / reuse code for the nav/footer/header etc across pages, which should have been simple, but then realized neocities doesn’t support php (😭 of course) and refactored it again to use javascript to handle the php files (😭😭) painful, a bit clunky, but it works now. hooray for slowly creeping towards more efficient code
i know you have a solution made with javascript for the time being, but look into HTML preprocessing languages too! https://css-tricks.com/comparing-html-preprocessor-features