freddyaboulton HF staff commited on
Commit
86ab588
1 Parent(s): 0d2d1a2

Set to 15 page size

Browse files
Files changed (1) hide show
  1. index.html +2 -2
index.html CHANGED
@@ -119,13 +119,13 @@
119
  }else {
120
  data.sort((a, b) => (new Date(b.lastModified) - new Date(a.lastModified)));
121
  }
122
- const pageThemes = data.slice((page - 1) * 30, page * 30);
123
 
124
  console.log(pageThemes);
125
 
126
  return {
127
  themes: pageThemes,
128
- totalPages: Math.floor(data.length + 30 - 1, 30)
129
  };
130
  },
131
  async nextPage() {
 
119
  }else {
120
  data.sort((a, b) => (new Date(b.lastModified) - new Date(a.lastModified)));
121
  }
122
+ const pageThemes = data.slice((page - 1) * 15, page * 15);
123
 
124
  console.log(pageThemes);
125
 
126
  return {
127
  themes: pageThemes,
128
+ totalPages: Math.floor(data.length + 15 - 1, 15)
129
  };
130
  },
131
  async nextPage() {