Code for the Kingdom site generator