jekyll tag plugin works offline but not on github

2019-03-04 00:30发布

问题:

There might seem to be other dupes like this, but this SO post is the closest with a hacky solution.

I got a theme that uses the tag plugin from here : http://charliepark.org/tags-in-jekyll/ Here is my site repo on github. It's hosted here : http://www.gideondsouza.com

Tags don't work online but work offline. On my local machine I see a _/site/tag/.. with folders for each tag. But this tag folder isn't generated on github? In fact I don't even see a _site folder, so maybe my understanding is off. Perhaps I need to install the github-pages gem?

I could probably fix it like in the SO post mentioned earlier, but this is hacky, I will always have to remember to copy the generated tags folder into the root.

Anything I'm missing?

回答1:

Github pages only support selected plugins (see documentation here).

If you want to use your plugin, you have to generate locally and to push the _site content online.