Not runtime, but a static site generator like Hugo or Jekyll.

This method protects against the inevitable site-wide changes like what you're describing.