-
Notifications
You must be signed in to change notification settings - Fork 241
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use site.baseurl to allow for local testing.
Newer versions of Jekyll introduced the site.baseurl configuration option [1], which is useful for testing the site locally. This commit adds support for site.baseurl to this theme. site.url is now used for the protocol and domain name only, without a trailing slash. site.baseurl, if specified, has a leading slash and no trailing slash. In many instances, site.url has been replaced by site.baseurl where the protocol and domain are not necessary (e.g., <a>, <img>, etc.). site.url is now used in the following places: - the canonical link - the feed link and within the feed - sharing, including Open Graph - search Some advice for where to use each comes from this StackOverflow post [2], and other changes were based on the scaffolding generated by the latest version of Jekyll (3.0.3). [1]: https://jekyllrb.com/docs/upgrading/0-to-2/#baseurl [2]: http://stackoverflow.com/a/27400343
- Loading branch information
Showing
23 changed files
with
81 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<p><a href="{{ site.url }}{{ post.url }}">{{ post.title | xml_escape }}</a> was originally published by {{ site.owner.name }} at <a href="{{ site.url }}">{{ site.title }}</a> on {{ post.date | date: "%B %d, %Y" }}.</p> | ||
<p><a href="{{ post.url | prepend: site.baseurl | prepend: site.url }}">{{ post.title | xml_escape }}</a> was originally published by {{ site.owner.name }} at <a href="{{ site.baseurl | prepend: site.url }}">{{ site.title }}</a> on {{ post.date | date: "%B %d, %Y" }}.</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
<!-- Icons --> | ||
<!-- 16x16 --> | ||
<link rel="shortcut icon" href="{{ site.url }}/favicon.ico"> | ||
<link rel="shortcut icon" href="{{ "/favicon.ico" | prepend: site.baseurl }}"> | ||
<!-- 32x32 --> | ||
<link rel="shortcut icon" href="{{ site.url }}/favicon.png"> | ||
<link rel="shortcut icon" href="{{ "/favicon.png" | prepend: site.baseurl }}"> | ||
<!-- 57x57 (precomposed) for iPhone 3GS, pre-2011 iPod Touch and older Android devices --> | ||
<link rel="apple-touch-icon-precomposed" href="{{ site.url }}/images/apple-touch-icon-precomposed.png"> | ||
<link rel="apple-touch-icon-precomposed" href="{{ "/images/apple-touch-icon-precomposed.png" | prepend: site.baseurl }}"> | ||
<!-- 72x72 (precomposed) for 1st generation iPad, iPad 2 and iPad mini --> | ||
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="{{ site.url }}/images/apple-touch-icon-72x72-precomposed.png"> | ||
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="{{ "/images/apple-touch-icon-72x72-precomposed.png" | prepend: site.baseurl }}"> | ||
<!-- 114x114 (precomposed) for iPhone 4, 4S, 5 and post-2011 iPod Touch --> | ||
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="{{ site.url }}/images/apple-touch-icon-114x114-precomposed.png"> | ||
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="{{ "/images/apple-touch-icon-114x114-precomposed.png" | prepend: site.baseurl }}"> | ||
<!-- 144x144 (precomposed) for iPad 3rd and 4th generation --> | ||
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ site.url }}/images/apple-touch-icon-144x144-precomposed.png"> | ||
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ "/images/apple-touch-icon-144x144-precomposed.png" | prepend: site.baseurl }}"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<div class="social-share"> | ||
{% capture shareurl %}{{ page.url | prepend: site.baseurl | prepend: site.url }}{% endcapture %}<div class="social-share"> | ||
<ul class="socialcount socialcount-small inline-list"> | ||
<li class="facebook"><a href="https://www.facebook.com/sharer/sharer.php?u={{ site.url }}{{ page.url }}" title="Share on Facebook"><span class="count"><i class="fa fa-facebook-square"></i> Like</span></a></li> | ||
<li class="twitter"><a href="https://twitter.com/intent/tweet?text={{ site.url }}{{ page.url }}" title="Share on Twitter"><span class="count"><i class="fa fa-twitter-square"></i> Tweet</span></a></li> | ||
<li class="googleplus"><a href="https://plus.google.com/share?url={{ site.url }}{{ page.url }}" title="Share on Google Plus"><span class="count"><i class="fa fa-google-plus-square"></i> +1</span></a></li> | ||
<li class="facebook"><a href="https://www.facebook.com/sharer/sharer.php?u={{ shareurl }}" title="Share on Facebook"><span class="count"><i class="fa fa-facebook-square"></i> Like</span></a></li> | ||
<li class="twitter"><a href="https://twitter.com/intent/tweet?text={{ shareurl }}" title="Share on Twitter"><span class="count"><i class="fa fa-twitter-square"></i> Tweet</span></a></li> | ||
<li class="googleplus"><a href="https://plus.google.com/share?url={{ shareurl }}" title="Share on Google Plus"><span class="count"><i class="fa fa-google-plus-square"></i> +1</span></a></li> | ||
</ul> | ||
</div><!-- /.social-share --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.