Summary:

Many buildings - markets, banks - increase a city's output of gold, especially if you assign merchant specialists to them.