Search code examples
jekyllliquidnetlifyjekyll-themenetlify-cms

Netlify deployed site view different than local jekyll serve


I am trying to deploy a jekyll website, specifically, in the Jekyll Uno template. The local view is completely fine, however, when I tried to deploy it, it looked something like this. P.S. the github repo is this and the local view looks like this. Any ideas what might be causing this?


Solution

  • You're moving from gh-pages to Netlify deploy. You then have to change some configuration.

    In _config.yml, change

    url: 'https://srdg.github.io'
    baseurl: '/jekyll-uno'
    

    to

    url: 'https://soumik.netlify.com'
    baseurl: ''
    

    You can also stop publishing on gh-pages by going in repository settings and set Github Pages >> sources to none. This can avoid you to have duplicate content and SEO problems.