0

我刚开始用 Jekyll 设置分页。当我在学习教程时,我意识到那条消息说有一个更新的版本。所以,我按照这个并复制粘贴了我在 GitHub 上找到的 jekyll-paginate-v2的gem 存储库中给出的第一个示例。

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

    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 的文件(在我的编码器和示例中都没有)。我的设置有什么问题?

4

0 回答 0