To make jekyll automatically generate sitemap for your Jekyll Powered site.

Put this code into Gemfile and run bundle install :

gem 'jekyll-sitemap'

and add the following to _config.yml

gems:
 	 - jekyll-sitemap

Don’t forget to start server to see changes. :)