Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

DylanLawless
Copy link

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 #190 but not included in that discussion.

Thanks for making this pugin.

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 jekyll#190 jekyll#190 but not included in that discussion. 

Thanks for making this pugin.
Correction to pull request for REAME.md example usage on line 86: `bundle exec jekyll build & `bundle exec jekyll serve`  to `bundle exec jekyll build`. `serve` should not be run after `build` to produce the correct sitemap URL for pre-built deployment.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant