mirror of
https://github.com/adulau/brouilleursdeblanc.git
synced 2024-11-07 12:06:26 +00:00
Add note about protocol-relative URLs
This commit is contained in:
parent
cf27ed9aa7
commit
5b4f70bdc6
1 changed files with 4 additions and 1 deletions
|
@ -100,7 +100,7 @@ Your site's logo, appears in the header below the navigation bar and is used as
|
|||
|
||||
#### url
|
||||
|
||||
Used to generate absolute URLs for sitemaps, feeds and for generating canonical URLs in a page's `<head>`. When developing locally either comment this out or use something like `http://localhost:4000` so all assets load properly. *Don't include a trailing `/`*.
|
||||
Used to generate absolute URLs for sitemaps, feeds and for generating canonical URLs in a page's `<head>`. When developing locally either comment this out or use something like `http://localhost:4000` so all assets load properly. *Don't include a trailing `/`*. [Protocol-relative URLs](http://www.paulirish.com/2010/the-protocol-relative-url/) are a nice option but there are a few caveats[^protocol].
|
||||
|
||||
Examples:
|
||||
|
||||
|
@ -108,9 +108,12 @@ Examples:
|
|||
url: http://mmistakes.github.io/so-simple-theme
|
||||
url: http://localhost:4000
|
||||
url: http://mademistakes.com
|
||||
url: //mademistakes.com
|
||||
url:
|
||||
{% endhighlight %}
|
||||
|
||||
[^protocol]: If you decide to use a protocol-relative URL know that it will most likely break sitemap.xml that the Jekyll-Sitemap gem creates. If a valid sitemap matters to you I'd suggest [creating your own sitemap.xml](http://davidensinger.com/2013/03/generating-a-sitemap-in-jekyll-without-a-plugin/) and apply some Liquid logic to prepend links to posts/pages with `https:`.
|
||||
|
||||
#### Google Analytics and Webmaster Tools
|
||||
|
||||
Google Analytics UA and Webmaster Tool verification tags can be entered under `owner` in `_config.yml`. For more information on obtaining these meta tags check [Google Webmaster Tools](http://support.google.com/webmasters/bin/answer.py?hl=en&answer=35179) and [Bing Webmaster Tools](https://ssl.bing.com/webmaster/configure/verify/ownership) support.
|
||||
|
|
Loading…
Reference in a new issue