thomasvaeth / trophy-jekyll

🏆 – A blog theme for Jekyll.
https://thomasvaeth.github.io/trophy-jekyll/
MIT License
288 stars 209 forks source link

category #49

Open chimaek opened 6 years ago

chimaek commented 6 years ago

When i click category and post then, It doesn't work. please can you tell me how to work?

lukalafaye commented 5 years ago

Give more info about your website and the content of your posts

a-ad commented 5 years ago

Ok here's my website, and I am having the same issue: https://a-ad.github.io/book-review/

From my debugging I think it is because the github-pages ruby package runs in safe mode and the category plugins does not work

It seems that github compiles the pages in safe mode itself and which is why the custom ruby plugin won't work

icarusoars commented 5 years ago

Ok here's my website, and I am having the same issue: https://a-ad.github.io/book-review/

From my debugging I think it is because the github-pages ruby package runs in safe mode and the category plugins does not work

It seems that github compiles the pages in safe mode itself and which is why the custom ruby plugin won't work

Hi a-ad, I see you have resolved the issue. May I ask how? I have the same issue right now.

a-ad commented 5 years ago

Fixed it using this rakefile to push the build folder to the gh-pages branch and use that for my deployment

thomasvaeth commented 5 years ago

The easiest solution is to stop using gh-pages and just sync your repo to Netlify. This theme is really old. I have better deployment documentation on a newer theme – https://github.com/samesies/barber-jekyll#deployment.

icarusoars commented 5 years ago

Fixed it using this rakefile to push the build folder to the gh-pages branch and use that for my deployment

Thank you a-ad. This is a great solution as you don't have to keep 2 repositories for your site. As a-ad mentioned, github pages is performing a safe jekyll build, so the plugin functionality is not being included. One would have to build the site locally and have github publish the locally built site. Read this article for more: https://www.sitepoint.com/jekyll-plugins-github/