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

Following quick start gives a malformed site #5404

Closed
SurajVerma opened this issue Sep 23, 2016 · 4 comments
Closed

Following quick start gives a malformed site #5404

SurajVerma opened this issue Sep 23, 2016 · 4 comments

Comments

@SurajVerma
Copy link

I am very new to jekyll. I tried the quick start guide mentioned on the homepage which is

~ $ gem install jekyll bundler
~ $ jekyll new myblog
~ $ cd myblog
~/myblog $ bundle install
~/myblog $ bundle exec jekyll serve

=> Now browse to http://localhost:4000

but it is giving me a malformed site
screenshot from 2016-09-24 00-15-14
until I am modifying the _config.yml site.
changing this url: "http://example.com" # the base hostname & protocol for your site to this url: "" # the base hostname & protocol for your site in _config.yml file makes it work for me. Am I missing something or this is the default behaviour ? And if it is, shouldn't there be a mention of this in the quick start ?

@jaybe-jekyll
Copy link
Member

Hi; and welcome. You come at a time of transition to gem-based themes which are awesome.

The default _config.yml that comes with the default minima theme contains a configuration variable, url: http://example.com.

This default configuration is about to change to keep things from breaking upfront.

For now, you can comment out the url: configuration variable, or change it to your domain.

@jaybe-jekyll
Copy link
Member

jaybe-jekyll commented Sep 23, 2016

Bonus: Use/view your web browser developer tools to see the CSS resource that is being called (http://example.com/css/main.css) and not found, explaining why the site styling breaks.

screen shot 2016-09-23 at 2 15 13 pm

@pathawks
Copy link
Member

Thanks @jaybe-jekyll for such a good explanation.

@3ncrypter Sorry that your first experience with Jekyll led you so quickly into a roadblock. We are working to improve this in the next version:+1:

@SurajVerma
Copy link
Author

@jaybe-jekyll @pathawks Thank you very much both of you for your help. @jaybe-jekyll as said earlier, I figured that out, but because it was not mentioned anywhere so I thought I am missing something that is why it is giving me a wrong config/css path. By the way, I am lovin it (coming from wordpress). Thanks again. Cheers. 👍 :)

@pathawks pathawks mentioned this issue Oct 5, 2016
17 tasks
@jekyll jekyll locked and limited conversation to collaborators Jul 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants