Jekyll Paginate无法正常工作

时间:2017-04-19 07:32:02

标签: rubygems jekyll jekyll-paginator

检查了我可能想到的任何可能错过的可能性,但仍然无法使分页工作。如果有人能提供帮助,我们将非常感激。

  • Ruby版本为ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin16]
  • Jekyll版本为jekyll 3.4.3
  • gems: [jekyll-paginate]已添加到_config.yml
  • {%for article in paginator.posts%}用于代码

gem list的输出:

*** LOCAL GEMS ***

addressable (2.5.1)
bigdecimal (default: 1.3.0)
coffee-script (2.4.1)
coffee-script-source (1.11.1)
colorator (1.1.0)
did_you_mean (1.1.0)
execjs (2.7.0)
ffi (1.9.18)
forwardable-extended (2.6.0)
io-console (default: 0.4.6)
jekyll (3.4.3)
jekyll-coffeescript (1.0.2)
jekyll-paginate (1.1.0)
jekyll-paginate-category (0.1.2)
jekyll-sass-converter (1.5.0)
jekyll-watch (1.5.0)
json (default: 2.0.2)
kramdown (1.13.2)
liquid (3.0.6)
listen (3.0.8)
mercenary (0.3.6)
minitest (5.10.1)
net-telnet (0.1.1)
openssl (default: 2.0.3)
pathutil (0.14.0)
power_assert (0.4.1)
psych (default: 2.2.2)
public_suffix (2.0.5)
rake (12.0.0)
rb-fsevent (0.9.8)
rb-inotify (0.9.8)
rdoc (default: 5.0.0)
rouge (1.11.1)
safe_yaml (1.0.4)
sass (3.4.23)
test-unit (3.2.3)
xmlrpc (0.2.1)

1 个答案:

答案 0 :(得分:0)

试一试:

1- make install paginate命令

  

sudo gem install jekyll-paginate

2-配置_config.yml:

  

添加插件 jekyll-paginate

     

添加变量 paginate:5 paginate_path:“/ blog / page:num /”

在索引页面中插入代码:

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/discord/client.py", line 307, in _run_event
    yield from getattr(self, event)(*args, **kwargs)
  File "bot2.py", line 32, in on_message
    await client.send_message(message.channel, a.bos(a))
AttributeError: 'str' object has no attribute 'bos'