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

Encountering issues when deploying _site #13

Closed
christiantype opened this issue Nov 19, 2016 · 7 comments
Closed

Encountering issues when deploying _site #13

christiantype opened this issue Nov 19, 2016 · 7 comments

Comments

@christiantype
Copy link

christiantype commented Nov 19, 2016

I've used jekyll build to generate my _site which I've uploaded to my live domain which can be viewed here: http://christiansolorzano.com/demo/

Can anybody let me know what is happening? Links are not working and neither are the stylesheets. Here is my repositirory: https://github.com/christiantype/jekyll-bourbon-test

Thanks

@christiantype christiantype changed the title Encountering issues when tdeploying _site Encountering issues when deploying _site Nov 19, 2016
@nielsenramon
Copy link
Owner

@christiantype Have you tried setting the baseurl to demo? As you aren't using the root domain.

@christiantype
Copy link
Author

christiantype commented Nov 19, 2016

Great! That seemed to fix things :-) http://christiansolorzano.com/demo/

Some links are broke now. Below is what is in my _config.yml. Should /demo/ be included elsewhere besides the baseurl?

# Mandatory settings

baseurl: /demo/
name: Chalk
paginate: 25
paginate_path: "/posts/page/:num/"
url: # add site url http://example.com/
blog_theme: light # Or use dark

# Optional settings

discus_identifier: # Add your Disqus identifier
ga_analytics: # Add your GA Tracking Id
rss_enabled: true # Change to false if not
social:
  dribbble: # Add your Dribbble link
  facebook: # Add your Facebook link
  github: # Add your GitHub link
  linkedin: # Add your LinkedIn link
  twitter: # Add your Twitter handle
  email: # Add your Email address
  bitcoin: # Add your Bitcoin link or address

# Important settings (change at own risk)

assets:
  compress:
    css: true
    js: true
  features:
    automatic_img_size: false
  sources:
    - _assets/bower
    - _assets/fonts
    - _assets/images
    - _assets/javascripts
    - _assets/stylesheets
    - _vendor/
collections:
  my_tags:
    output: true
    permalink: /tag/:slug/
defaults:
  -
    scope:
      path: ""
      type: my_tags
    values:
      layout: articles_by_tag
exclude:
  - .bowerrc
  - .travis.yml
  - bin/*
  - bower.json
  - circle.yml
  - Gemfile
  - Gemfile.lock
  - README.md
  - vendor/
gems:
  - jekyll-assets
  - jekyll-paginate
  - jekyll-sitemap
  - bourbon
  - neat
permalink: posts/:slug

@nielsenramon
Copy link
Owner

@christiantype It should work with just the baseurl. Does it work locally when running jekyll serve?

@christiantype
Copy link
Author

When I work locally using http://127.0.0.1:4000/demo/, homepage works fine.

However, when I click on a post, the link goes to http://127.0.0.1:4000/posts/writingthrough and I receive the 404 error page. I have to manually type /demo before /posts/ in the URL, to see my post.

Here's an a live example:
Home page: http://christiansolorzano.com/demo
Post, clicked from: home page: http://christiansolorzano.com/posts/writingthrough
Correct URL, by manually fixing address in browser: http://christiansolorzano.com/demo/posts/writingthrough.html

It looks like Jekyll Build isn't including /demo/ in any of the sub-level pages.

@nielsenramon
Copy link
Owner

@christiantype I see what happened, you are using an old version of Chalk. I fixed everything by using relative_paths from Jekyll. Please have a look at the index page and switch the urls :)

@christiantype
Copy link
Author

Cool! I noticed you Use new Jekyll relative_url and absolute_urls (#7) in several places. Would you recommend that I do it everywhere you did?

@nielsenramon
Copy link
Owner

@christiantype Yes! Let me know if you have any more issues.

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