Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Commit

Permalink
Read options from configs when querying
Browse files Browse the repository at this point in the history
  • Loading branch information
erikcheung committed Dec 9, 2022
1 parent 05a3a66 commit c299431
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/bridgetown-prismic/api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ def query_prismic(custom_type, options = {})
page = 1
finalpage = false
options["pageSize"] ||= 100 # pull in as much data as possible for a single request
query_options = Bridgetown::Current.site.config.prismic_query_options
options.merge!(query_options) if query_options

until finalpage
options["page"] = page
Expand Down

0 comments on commit c299431

Please sign in to comment.