fix file listing in gists

and render notebook if there's only one

related to #300
Is `notebooks` assumed to be length 0 at this point?