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

Use site.baseurl to allow for local testing. #25

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

Commits on Mar 14, 2016

  1. 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
    seanfisk committed Mar 14, 2016
    Configuration menu
    Copy the full SHA
    39c6bb7 View commit details
    Browse the repository at this point in the history

Commits on Mar 16, 2016

  1. Configuration menu
    Copy the full SHA
    e45f7ac View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b6b4336 View commit details
    Browse the repository at this point in the history