The source code of https://lobste.rs/ is also open source and from a feature point-of-view pretty similar. https://github.com/lobsters/lobsters
> building each site from the model data each time a link is clicked would be a huge waste of server resources
It's typically still done. Forums are 90+% read, little write and caching the rendering output gives a huge boost.