jekyll标签插件可以脱机工作,但不能在github页面上使用 [英] jekyll tag plugin works offline but not on github pages
问题描述
似乎还有其他类似的骗子,但这篇SO帖子是最接近可修改的解决方案.
There might seem to be other dupes like this, but this SO post is the closest with a hacky solution.
我从这里得到了一个使用标签插件的主题: http://charliepark.org/tags-in-jekyll/这是我在github上的网站回购.它在这里托管: http://www.gideondsouza.com
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
标记不能在线使用,但可以离线使用.在我的本地计算机上,我看到一个_/site/tag/..
,其中包含每个标签的文件夹.但是这个标签文件夹不是在github上生成的吗?实际上,我什至没有看到_site
文件夹,因此也许我的理解已关闭.也许我需要安装github-pages gem?
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?
我可能可以像前面提到的SO帖子中那样修复它,但是这很麻烦,我将始终必须记住将生成的标签文件夹复制到根目录中.
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.
我想念什么吗?
推荐答案
Github pages only support selected plugins (see documentation here).
如果要使用插件,则必须在本地生成并在线推送_site
内容.
If you want to use your plugin, you have to generate locally and to push the _site
content online.
这篇关于jekyll标签插件可以脱机工作,但不能在github页面上使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!