Yes, this could be the comment Part, although I'd do it without Javascript by using a server side script that generates static Sources for Hugo.

But anyway, the pieces are there,

CC: @cwebber@social.coop