javascript - 如何在 octopress 中使用 jekyll 多语言插件

标签 javascript ruby-on-rails internationalization jekyll octopress

我无法获得多种语言 plugin为我的 octopress 博客工作。我打开了一个issue关于它,但似乎没有人回应。有人知道如何将此插件与 octopress 集成吗?

编辑

它会在 public/tr 子文件夹中正常生成帖子。但问题是 source/index.html。请注意,我使用 {% site.posts %} 变量来遍历帖子,这对于 tr 语言来说是错误的。什么方法呈现 index.html,并为其提供负载?

请注意,它在 public 文件夹中生成 tr 语言,唯一的问题是 index.html

最佳答案

您正在使用的插件不再有效。我建议转向这个插件:

https://github.com/liaohuqiu/jekyll-multiple-languages

文档:

http://jekyll-langs.liaohuqiu.net/

顺便说一句,文档网站就是用这个插件搭建的。

这些是一些示例网站:

http://cube-sdk.liaohuqiu.net/

http://www.liaohuqiu.net/ ,这是我的博客,其源代码也在github:https://github.com/liaohuqiu/liaohuqiu.github.io

我还打开了一个拉取请求:https://github.com/eguneys/eguneys.github.io/pull/1 , 你可以检查一下。

关于javascript - 如何在 octopress 中使用 jekyll 多语言插件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26201184/

相关文章:

c++ - 何时以及如何使用 std::locale::messages?

javascript - 在 P5.js 中创建元素对象

ruby-on-rails - 带参数的rails自定义休息路线

javascript - 在 angularjs 1.2(或 javascript)和 HTML 4x 中打开 Saveas 对话框

ruby-on-rails - 回形针上传yml文件

java - Sunspot Solr 不以 "You need a Java Runtime Environment to run the Solr server"开头

design-patterns - 多语言网站的设计模式?

java - Google App Engine Servlet 中的 ResourceBundle 无法按预期工作

javascript - 如何在 JavaScript for Canvas 中启用加速硬件

javascript - 子元素的位置在哪里? - 查询