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

Change `site.url` to `site.baseurl` can make it work at localhost #3

Closed
imrickysu opened this Issue Feb 19, 2015 · 2 comments

Comments

Projects
None yet
2 participants
@imrickysu
Copy link

imrickysu commented Feb 19, 2015

Ap categories.md and tags.md, creating post links with {{site.url}} always direct the link to external website.
In the situation that user would like to preview posts at localhost, change {{site.url}} to {{site.baseurl}} helps to make the theme work at both localhost and remote server.

@yulijia yulijia added the Bug label Feb 20, 2015

@yulijia

This comment has been minimized.

Copy link
Owner

yulijia commented Feb 20, 2015

Thanks a lot.
I fix all site url bugs, now user can preview site at localhost with correct links.

@yulijia yulijia closed this Feb 20, 2015

@yulijia

This comment has been minimized.

Copy link
Owner

yulijia commented Mar 6, 2015

a great article about site.url and site.baseurl.

TL;DR: Use baseurl when you are building a site that doesn’t sit at the root of the domain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment