Fix gallery breaks; add archive/gallery title to ref list