Add permalink in gallery directive

This adds a permalink "#" which should not matter (seems to work, at least)