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
949 stars 134 forks source link

README.md how to base URL for pre-built deployment #286

Open DylanLawless opened 3 years ago

DylanLawless commented 3 years ago

Since GitHub Pages blocks plugins (like Jekyll-scholar), many Jekyll users pre-build their site before deploying to GitHub Pages. This is most commonly done using bundle exec jekyll serve on the source branch. However, this will fail to use the correct URL defined in the _config.yml and instead use "http://localhost".

A two sentence description is added to README.md to show the required usage, which will prevent people from creating an invalid sitemap, or giving up if they notice their incorrect URL despite correct _config.yml settings. Similar to issue #190 https://github.com/jekyll/jekyll-sitemap/issues/190 but not included in that discussion.

Thanks for making this pugin.