Coder Social home page Coder Social logo

Comments (9)

samanyougarg avatar samanyougarg commented on May 13, 2024

Hi

I just tried deploying to Github Pages on a new site. It seems to work fine.

What did you set as your url in _config.yml?

from hanuman.

nicholaschuayunzhi avatar nicholaschuayunzhi commented on May 13, 2024

Hi there,

when i set the url as "https://nicholaschuayunzhi.github.io" and base url "/" it works fine locally but when deployed to ghpages, the href of my links don't have "/" prepended.

from hanuman.

samanyougarg avatar samanyougarg commented on May 13, 2024

You can leave the base url as "". It should work on local as well as on Github Pages. Try it and let me know.
Thanks

from hanuman.

nicholaschuayunzhi avatar nicholaschuayunzhi commented on May 13, 2024

Hi there!

I tried leaving baseurl as "" and it does not work locally. I've also tried using the "/" as suggested and works locally but does not work when deployed to Github Pages.

I've updated my repository. You can refer to the config file there. The site has also been deployed to gh pages as a user site.

The error arises when i try to use the side bar from my about page. https://nicholaschuayunzhi.github.io/about/

When i click about on the side bar it redirects me to https://nicholaschuayunzhi.github.io/about/about

from hanuman.

samanyougarg avatar samanyougarg commented on May 13, 2024

How are you deploying the site to Github Pages?
I just tried deploying using travis as well as pushing contents of site-pages to the gh-pages branch of the repository and it worked fine.

from hanuman.

nicholaschuayunzhi avatar nicholaschuayunzhi commented on May 13, 2024

I'm not too sure what you're asking here sorry - I'm a bit new to this. I'm building from master branch.

I read in the readme that i'm supposed to push the _site folder? but its under the gitignore. Am i doing something wrongly?

I'm not using travis to deploy.

from hanuman.

samanyougarg avatar samanyougarg commented on May 13, 2024

No worries.
If you installed the theme using method 1, you need to push the contents of the destination folder (mentioned in _config.yml. eg - destination: ../hanuman-pages/) to the gh-pages branch(if project page) or master branch(if user page) of your repository.
If you installed the theme using Ruby Gem method, you need to push the contents of _site folder.
I will make the instructions more clear.

from hanuman.

nicholaschuayunzhi avatar nicholaschuayunzhi commented on May 13, 2024

Hmm, i tried the first method but i still get the same error.

Here are the steps i did:

  1. $ git clone https://github.com/samanyougarg/hanuman.git
  2. updated config.yml gist
  3. $ bundle exec jekyll build
  4. push the destination folder to my repo (/hanuman-pages/) https://github.com/nicholaschuayunzhi/nicholaschuayunzhi.github.io

I still get the same error mentioned in #3 (comment)

EDIT: Want to clarify that it works fine locally.
EDIT2: Added the build step.

It works fine now! Thanks for your patience :)

from hanuman.

nicholaschuayunzhi avatar nicholaschuayunzhi commented on May 13, 2024

Would like to add the error i made before was:

  1. $ git clone https://github.com/samanyougarg/hanuman.git
  2. updated config.yml gist
  3. $ bundle exec jekyll build
  4. push the cloned repo into my repo

from hanuman.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.