You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 5, 2021. It is now read-only.
I'm trying to paginate data brought in from Contentful, but struggling with the following error..
middleman-pagination-86aa6efd5409/lib/middleman/pagination/index_path.rb:41:in 'index_file_pattern': undefined method 'index_file' for #<Middleman::Application:0x70303404706160> (NoMethodError)
My set up is as follows...
- config.rb
app.data.blog.articles.each do |article|
proxy "/blog/#{article[1][:slug]}/index.html", "/blog/show.html", locals: {
article: article[1]
}, :ignore => true
end
activate :pagination do
pageable_set :articles do
data.blog.articles.sort_by{ |id,a| a[:date] }.reverse
end
end
I'm trying to paginate data brought in from Contentful, but struggling with the following error..
middleman-pagination-86aa6efd5409/lib/middleman/pagination/index_path.rb:41:in 'index_file_pattern': undefined method 'index_file' for #<Middleman::Application:0x70303404706160> (NoMethodError)
My set up is as follows...
- config.rb
- /blog/index.html.erb
Then my blog files are stored as...
-- blog
---articles
---- 1DYb43fjkefef34U.yaml
etc
etc
The text was updated successfully, but these errors were encountered: