smarter vars output
generate markdown pages with title and one image