Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

home和archives的页面是哪里配的 #19

Open
HOUSHENGREN opened this issue May 30, 2023 · 2 comments
Open

home和archives的页面是哪里配的 #19

HOUSHENGREN opened this issue May 30, 2023 · 2 comments

Comments

@HOUSHENGREN
Copy link

image

代码
image

 blog: {
            directories: [
                {
                  id: 'experience',
                  dirname: 'experience',
                  path: '/experience/',
                  itemPermalink: '/experience/:year/:month/:day/:slug.html',
                  pagination: {
                    perPagePosts: 10,
                  },
                }
            ],
            frontmatters: [
                {
                  id: "tag",
                  keys: ['tag', 'tags'],
                  path: '/tags/',
                  frontmatter: { title: 'Tag' },
                  pagination: {
                    lengthPerPage: 10
                  }
                },
                {
                  id: "category",
                  keys: ['category', 'categories'],
                  path: '/categories/',
                  frontmatter: { title: 'Category' },
                  pagination: {
                    lengthPerPage: 10
                  }
                }
            ],
@HOUSHENGREN
Copy link
Author

我路径错了,换成单斜杠就可以了😂
image

@HOUSHENGREN
Copy link
Author

我整好了,这是我的博客😁🤞😁
http://localhost:8080/zdz-blog/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant