~xdavidwu/xdavidwu.link

f3013f4623f8f9a3f1bfa8d57cdc987cce4fd3e8 — Michael Rose 8 years ago 7e41263
Add development config file
2 files changed, 7 insertions(+), 1 deletions(-)

A _config.dev.yml
M _docs/05-configuration.md
A _config.dev.yml => _config.dev.yml +6 -0
@@ 0,0 1,6 @@
# Develop override settings

url: http://localhost:4000

analytics:
  provider: false
\ No newline at end of file

M _docs/05-configuration.md => _docs/05-configuration.md +1 -1
@@ 55,7 55,7 @@ Fairly obvious. `site.description` describes the site. Used predominantly in met

The base hostname and protocol for your site. If you're hosting with GitHub Pages this will be something like `url: "http://github.io.mmistakes"`, or for self-hosting `url: "https://mademistakes.com"`.

**Note:** It's important to remember that when testing locally you need to change this. Ideally you'd use [multiple config files](https://mademistakes.com/articles/using-jekyll-2016/#environments-and-configurations) to override settings, but simply commenting out the line works as well `# url: "http://mmistakes.github.io"`. Just remember to uncomment it before pushing or else you'll have broken assets and links all over the place!
**Note:** It's important to remember that when testing locally you need to change this. Ideally you'd use [multiple config files](https://mademistakes.com/articles/using-jekyll-2016/#environments-and-configurations) with `bundle exec jekyll serve --config _config.yml,_config.dev.yml` to apply development override settings. Simply commenting out the line works as well `# url: "http://mmistakes.github.io"`. Just remember to uncomment it before pushing or else you'll have broken assets and links all over the place!
{: .notice--warning}

**ProTip:** GitHub serves pages over `http://` and `https://` so to take advantage of that go protocol-less like so `url: "//github.io.mmistakes"`.