更新到 v2 后 Jekyll 中的分页错误

问题描述

我刚开始用 Jekyll 设置分页。当我关注 tutorial 时,我认出了那条消息,说有一个更新的版本。因此,我按照此操作并复制粘贴了我在 GitHub 上找到的 jekyll-paginate-v2 的 gem repository 中给出的第一个示例。

不幸的是这行不通,告诉我我会结合新旧分页逻辑。错误是:

    Autopages: disabled/Not configured in site.config.
    Pagination: Legacy paginate configuration settings detected and will be used.
    The new jekyll-paginate-v2 and the old jekyll-paginate logic cannot both be configured in the site config at the same time. Please disable the old 'paginate:' config settings by either omitting the values or setting them to 'paginate:off'.
    Traceback (most recent call last):
        ...
    .../paginationGenerator.rb:37:in `generate': The new jekyll-paginate-v2 and the old jekyll-paginate logic cannot both be configured in the site config at the same time. Please disable the old 'paginate:' config settings by either omitting the values or setting them to 'paginate:off'. (ArgumentError)

我省略了对 jekyll 的文件引用(我的文件都没有列出)。此外,我没有看到名为 site.config文件(无论是在我的编码器中还是在示例中)。我的设置有什么问题?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...