Comments (9)
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.
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.
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.
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.
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.
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.
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.
Hmm, i tried the first method but i still get the same error.
Here are the steps i did:
$ git clone https://github.com/samanyougarg/hanuman.git
- updated config.yml gist
$ bundle exec jekyll build
- 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.
Would like to add the error i made before was:
$ git clone https://github.com/samanyougarg/hanuman.git
- updated config.yml gist
$ bundle exec jekyll build
- push the cloned repo into my repo
from hanuman.
Related Issues (13)
- Blank page after the theme installation HOT 1
- Howto set this one up with GitLab Pages? HOT 1
- How to use tags HOT 4
- Multiple Author's HOT 1
- links of the posts at the tag's page are not redirecting. HOT 1
- in <amp-sidebar> the tag 'li' contains the attribute 'class' repeated two times. HOT 1
- Title with button for Home page HOT 1
- Best size for the cover image HOT 1
- Form styling HOT 1
- Index page readmore after click it's color will be same with background HOT 1
- _posts aren't loading When Transfered HOT 3
- Demo page returns 404 (Not Found)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hanuman.