Skip to content

Commit

Permalink
change default per-page from 20 to 1000
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisburnell committed Jul 20, 2024
1 parent 1a75832 commit edc567f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion eleventy-cache-webmentions.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ const fetchWebmentions = async (options) => {
let page = 0
// Loop until a break condition is hit
while (true) {
const perPage = Number(new URL(url).searchParams.get("per-page")) || 20
const perPage = Number(new URL(url).searchParams.get("per-page")) || 1000
const urlPaginated = url + `&page=${page}`
const fetched = await performFetch(options, webmentions, urlPaginated)

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@chrisburnell/eleventy-cache-webmentions",
"version": "2.1.0-beta.1",
"version": "2.1.0-beta.2",
"description": "Cache webmentions using eleventy-fetch and make them available to use in collections, layouts, pages, etc. in Eleventy.",
"license": "MIT",
"repository": {
Expand Down

0 comments on commit edc567f

Please sign in to comment.