jekyll tag plugin works offline but not on github pages

我与影子孤独终老i 提交于 2019-12-02 17:28:34

问题


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.



来源:https://stackoverflow.com/questions/37430548/jekyll-tag-plugin-works-offline-but-not-on-github-pages

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!