You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 13, 2024. It is now read-only.
I confirm that this is an issue rather than a question.
Bug report
Steps to reproduce
I prepared a reproduction repo. Note that the post names are different than in the steps I outline below (2021-01-01-first.md and 2021-01-01-second.md).
This issue doesn't need a reproduction repro, here is the steps to reproduce
Create a new VuePress project using npx create-vuepress-site mysite.com
...
plugins: [
...
["@vuepress/blog",{directories: [{// Unique ID of current classificationid: 'post',// Target directorydirname: '.',// Path of the `entry page` (or `list page`)path: '/',},],}],],
...
By moving the posts to a subdirectory of the VuePress root, e.g. docs/posts/, and updating the plugin configuration object with dirname: "posts", the Post layout is correctly used for the posts
npx vuepress info:
Environment Info:
System:
OS: Windows 10 10.0.18363
CPU: (4) x64 Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz
Binaries:
Node: 14.15.0 - C:\Program Files\nodejs\node.EXE
Yarn: Not Found
npm: 6.14.8 - C:\Program Files\nodejs\npm.CMD
Browsers:
Chrome: 89.0.4389.82
Edge: Spartan (44.18362.449.0)
npmPackages:
@vuepress/core: 1.8.2
@vuepress/theme-default: 1.8.2
vuepress: ^1.8.2 => 1.8.2
npmGlobalPackages:
vuepress: Not Found
Bug report
Steps to reproduce
I prepared a reproduction repo. Note that the post names are different than in the steps I outline below (2021-01-01-first.md and 2021-01-01-second.md).
This issue doesn't need a reproduction repro, here is the steps to reproduce
npx create-vuepress-site mysite.comvuepress <dev|build> srctovuepress <dev|build> docsnpm i -D @vuepress/plugin-blogdirname: "."ordirname: "/"(see below)npm inpm run devconfig.js
2021-01-01-test.md
# Test hello, worldIndexPost.vue
Post.vue
What is expected?
itemPermalinkWhat is actually happening?
Other relevant information
Specifying
itemLayout: "Post"does not workBy moving the posts to a subdirectory of the VuePress root, e.g. docs/posts/, and updating the plugin configuration object with
dirname: "posts", the Post layout is correctly used for the postsnpx vuepress info:Environment Info: System: OS: Windows 10 10.0.18363 CPU: (4) x64 Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz Binaries: Node: 14.15.0 - C:\Program Files\nodejs\node.EXE Yarn: Not Found npm: 6.14.8 - C:\Program Files\nodejs\npm.CMD Browsers: Chrome: 89.0.4389.82 Edge: Spartan (44.18362.449.0) npmPackages: @vuepress/core: 1.8.2 @vuepress/theme-default: 1.8.2 vuepress: ^1.8.2 => 1.8.2 npmGlobalPackages: vuepress: Not Found