-
Notifications
You must be signed in to change notification settings - Fork 348
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
Author pages and tag pages returns 404 #16
Comments
Hi @poi-son, The problem you get is because for security reasons, Github doesn't run the plugins (under _plugins/) for authors/tags page when deploying with Github Pages. As explained in deployment, for getting it to work:
For option 1) simply clone this repository (master branch), and then run jekyll serve inside the directory. Upload the resulting _site/ contents to your repository (master branch if uploading as your personal page (username.github.io) or gh-pages branch if uploading as a project page (as for the demo). For option 2) you will need to set up travis-ci for your personal fork. Briefly all you need then is to change your details in _config.yml so that you can push to your github repo. You will also need to generate a secure key to add to your .travis.yml (you can find more info on how to do it in that file). Also make sure you read the documentation from jekyll-travis. This approach has clear advantages in that you simply push changes to your files and all the html files are generated for you. Also you get to know if everything is still fine with your site builds. Don't hesitate to contact me if you still have any issues (see below about issue tracking). Let me know if this is clear to you, otherwise I will give it another shot... Cheers |
Thanks for your answer. |
I have same problem, i follow option 1, but not change :(, plz help me. |
@hungdh0x5e I went looking for your jasper fork and I guess the problem is that you pushed the contents of the master branch instead of the contents of the _site/ folder. The contents of the folder should look like what you see for the jasper demo here https://github.com/biomadeira/jasper/tree/gh-pages Let me know if this helps. |
@biomadeira I'm also getting this error too. It was originally working, but I've deleted the repo three times to get it to work again and it's no good. |
Sorry @hungdh0x5e and @farmanp Can you check whether the links in https://github.com/biomadeira/jasper/blob/master/_includes/navigation.html#L12 are pointing the your username/nickname and the same for the tags you use? Cheers |
@biomadeira Thanks for your answer, it's working. |
Hi @biomadeira I also have the same problem as @alan-yeh and @hungdh0x5e I am also using Option 1 as a personal page. My source files are at https://github.com/itumel/itumel.github.io My demo is http://abeginnersguidetohackathons.com I have checked that navigation.html points towards my username/nickname and the same for tags. If you click on author on my site you get 404.html. I am new to Jekyll. Please help. |
@itumel Sorry to hear that you are getting some problems. Not sure if you fixed some already, but your author page http://abeginnersguidetohackathons.com/author/sharon/ seems to be working fine. As for the tags I am not sure why you have product and preparation tags in the navigation, whereas you only seem to have posts about introduction. This later tag seems to be working fine... |
Hi @biomadeira Yes I managed to fix the problem. I followed the advice on Option 1 to the letter by pushing to remote server only the contents of the /_site/ folder instead of the entire jekyll project. I am still writing the articles for product and preparation. Thank you. |
@biomadeira Please help me with clearer instruction on option 2, from what I understand:
But I am having some problem with Travis CI. This is the error I have received: |
Hello @biomadeira, Could you point me to what I might be doing wrong? If I try to uncomment author permalink in _config.yml, I get: I have tested it on both your fork without any changes and my version where I modified _data/author names so it matches author in the post. Thanks, your help is much appreciated. |
Hi I'm still having this problem, after following your instruction, which is, just push contents in the _site/ folder to my github.io repo, but the problem's still there. Could you please help? |
Make AutGenerator get posts by author.
Nice theme!
There is a problem in my blog. I had changed the 'categories' and 'tags' in my markdown posts and it works well in local server but not in pages.github.com. I wander if there is any mistake I made.
The text was updated successfully, but these errors were encountered: