Skip to content

Commit

Permalink
dfd
Browse files Browse the repository at this point in the history
  • Loading branch information
frankelinli committed Mar 18, 2024
1 parent 79e2e91 commit 786e3a4
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
23 changes: 23 additions & 0 deletions docs/test/其他.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
docusaurus.config.js

```js
export default {
// ...
presets: [
[
'@docusaurus/preset-classic',
{
blog: {
blogTitle: 'Docusaurus blog!',
blogDescription: 'A Docusaurus powered blog!',
postsPerPage: 'ALL',
},
},
],
],
};
```

设置blog首页显示全部博客,无限拉长:postsPerPage: 'ALL',

设置blog首页显示3篇文章:postsPerPage: '3,
2 changes: 1 addition & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const config = {
showReadingTime: true,
blogTitle: 'frankelinle blog!',
blogDescription: 'A Docusaurus powered blog!',
postsPerPage: '3',
postsPerPage: 2,
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
Expand Down

0 comments on commit 786e3a4

Please sign in to comment.