jekyll / jekyll-sitemap

Jekyll plugin to silently generate a sitemaps.org compliant sitemap for your Jekyll site
http://rubygems.org/gems/jekyll-sitemap
MIT License
961 stars 135 forks source link

Need help - site map generate failed #224

Closed RollsBean closed 6 years ago

RollsBean commented 6 years ago

I use latest Jekyll and i want to add site map in my blog. I add config plugins: - jekyll-sitemap in _config.yml, while so sitemap.xml generated, then i follow guidance to add a folder named _plugin and add plugin jekyll-sitemap.rb to this folder, while nothing happened. How can i do to add site map to may blog, anyone help me, thanks! Additionally, my blog url: https://rollsbean.github.io/ for detail checking if needed

RollsBean commented 6 years ago

Or anyone can help me to add site map? it's will useful for me

DirtyF commented 6 years ago

jekyll-sitemap is a Ruby Gem, you don't need to add a _plugins folder (it will be ignored by GitHub Pages), just add it to the plugins array in the config file to tell Jekyll to use it.

Your config file use gems and plugins at the same time, that might be the problem, FYI gems has been deprecated in favor of plugins since Jekyll 3.5.0

https://github.com/RollsBean/rollsbean.github.com/blob/master/_config.yml#L59-L63

You have update your config file with a single plugins and remove the gems entry:

plugins:
 - jekyll-paginate
 - jekyll-sitemap
 - jekyll-feed 
RollsBean commented 6 years ago

@DirtyF thanks for your support