From f3013f4623f8f9a3f1bfa8d57cdc987cce4fd3e8 Mon Sep 17 00:00:00 2001 From: Michael Rose Date: Fri, 8 Apr 2016 21:00:30 -0400 Subject: [PATCH] Add development config file --- _config.dev.yml | 6 ++++++ _docs/05-configuration.md | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 _config.dev.yml diff --git a/_config.dev.yml b/_config.dev.yml new file mode 100644 index 00000000..a1b40341 --- /dev/null +++ b/_config.dev.yml @@ -0,0 +1,6 @@ +# Develop override settings + +url: http://localhost:4000 + +analytics: + provider: false \ No newline at end of file diff --git a/_docs/05-configuration.md b/_docs/05-configuration.md index 332962a1..c604ccf3 100644 --- a/_docs/05-configuration.md +++ b/_docs/05-configuration.md @@ -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"`.