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

Sub-sites without layout #13

Closed
OnkelPofanz opened this issue Oct 31, 2015 · 4 comments
Closed

Sub-sites without layout #13

OnkelPofanz opened this issue Oct 31, 2015 · 4 comments

Comments

@OnkelPofanz
Copy link

local test with centrarium-master:

What's the problem?

@bencentra
Copy link
Owner

I tried following those steps and couldn't access the site at all at http://127.0.0.1:4000. I could get to it at http://127.0.0.1:4000/centrarium/. All the pages had the proper layout and styles.

You shouldn't need to change the url field in _config.yml when you're developing locally with jekyll serve. You can keep it set to the URL you'll be deploying the site to.

What is the value of baseurl in _config.yml?. In the demo, the default is /centrarium/, which means you can access the site (after running jekyll serve) at http://localhost:4000/centrarium/.

@OnkelPofanz
Copy link
Author

Thank you for your answer, but no improvement. Here are some details:

  • use jekyll under win7
  • unzip centrarium-master
  • open a commandline and change to the directory centrarium-master
  • bundle install
  • jekyll serve
  • open http:///127.0.0.1:4000 in a browser: --> Error: 'not found'
  • edit _config.yml: change baseurl: "/centrarium/" to baseurl: ""
  • restart jekyll
  • reopen http:///127.0.0.1:4000 in the browser: --> homepage is starting with correct layout
  • click on a header of any post: --> the post-site starting without layout

Where is the mistake?

@bencentra
Copy link
Owner

See if #15 fixes the issue for you. It makes all of the paths in the project more sane (i.e. no worrying about a preceding "/")

@OnkelPofanz
Copy link
Author

Yes, that is the solution. Thank you!
I close this issue. Bye!

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