We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c096f6e commit 4e3d7dbCopy full SHA for 4e3d7db
1 file changed
pages/blog/index.js
@@ -29,7 +29,7 @@ export default function Blog({ posts }) {
29
<>
30
<Container>
31
<BlogSearch>
32
- <Title blogTitle title={!searchTerm && 'Latest Posts'} />
+ <Title title={!searchTerm && 'Latest Posts'} />
33
<SearchBar setSearchTerm={setSearchTerm} />
34
</BlogSearch>
35
</Container>
@@ -48,8 +48,10 @@ export default function Blog({ posts }) {
48
}
49
50
export async function getStaticProps() {
51
- const PER_PAGE = 1000
52
- const res = await fetch(`https://dev.to/api/articles?username=wdp&per_page=${PER_PAGE}`);
+ const PER_PAGE = 1000;
+ const res = await fetch(
53
+ `https://dev.to/api/articles?username=wdp&per_page=${PER_PAGE}`,
54
+ );
55
const posts = await res.json();
56
57
return {
0 commit comments