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

Build_Site and Serve_Site Output Issues. #56

Closed
detroyejr opened this issue Feb 18, 2017 · 2 comments
Closed

Build_Site and Serve_Site Output Issues. #56

detroyejr opened this issue Feb 18, 2017 · 2 comments

Comments

@detroyejr
Copy link

My current workflow is to set my working directory to the the website directory that is created when using the function new_site. Serve_Site works as expected and I can view my work correctly without issue. However, when I use build_site there's a difference that breaks layout. The index.html file will point to the site's main directory rather than the public directory.

Here's an example:

Serve_Site will correctly link to resources: "./2017/02/15/an-intro-to-gaussian-mixture-modeling/"
Build_Site adds an extra folder: "./jonathande4.github.io/2017/02/15/an-intro-to-gaussian-mixture-modeling/"

Serve_site still works as I need it to, but it took a couple problematic git commits to understand the issue. I am wondering if others have experienced this issue, or if it's a problem with my usage.

@detroyejr detroyejr changed the title Build_Site and Serve_Site Cause Output Create Issues. Build_Site and Serve_Site Output Issues. Feb 18, 2017
@yihui
Copy link
Member

yihui commented Feb 20, 2017

You probably set baseurl = "jonathande4.github.io" in config.toml, which is not an absolute URL and really should be "https://jonathande4.github.io/" instead. I'd recommend baseurl = "/", though, but it depends on the specific theme you use.

@detroyejr
Copy link
Author

Ah, that is correct! Thank's for the correction. It was a change I made a while back but didn't think to look into.

Thanks for the help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants