fix file listing in gists

and render notebook if there's only one