Fixed Broken Galleries… Again

Crap. Looks like even more stuff was broken by the recent Hugo upgrade than I realized, but I think everything should be back to normal now.