lib/jekyll-indico/generator.rb in jekyll-indico-0.4.5 vs lib/jekyll-indico/generator.rb in jekyll-indico-0.5.0

- old
+ new

@@ -33,17 +33,18 @@ data_path = @site.config.dig('indico', 'data') || 'indico' @site.data[data_path] = {} unless @site.data.key? data_path timeout = @site.config.dig('indico', 'timeout') + limit = @site.config.dig('indico', 'paginate') # Do nothing if already downloaded return if @site.data[data_path].key? name msg = @cache_msg ? " - run `#{@cache_msg}` to cache" : '' print "Accessing Indico meeting API for #{name}:#{number}#{msg}" time = Benchmark.realtime do - iris_meeting = Meetings.new(base_url, number, timeout: timeout) + iris_meeting = Meetings.new(base_url, number, timeout: timeout, limit: limit) @site.data[data_path][name] = iris_meeting.dict end puts ", took #{time.round(1)} s" end end