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

时间:2021-02-06 22:17:55

标签: ruby jekyll jekyll-paginator

我刚开始用 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 的文件(无论是在我的编码器中还是在示例中)。我的设置有什么问题?

0 个答案:

没有答案
相关问题