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 has been 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
The text was updated successfully, but these errors were encountered:
aentwist
changed the title
docs: add DirectoryClassifier [dirname](https://vuepress-plugin-blog.ulivz.com/config/#dirname) cannot be the VuePress root "." or "/"
docs: add DirectoryClassifier dirname cannot be the VuePress root "." or "/"
Mar 14, 2021
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.com
vuepress <dev|build> src
tovuepress <dev|build> docs
npm i -D @vuepress/plugin-blog
dirname: "."
ordirname: "/"
(see below)npm i
npm run dev
config.js
2021-01-01-test.md
# Test hello, world
IndexPost.vue
Post.vue
What is expected?
itemPermalink
What 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
:The text was updated successfully, but these errors were encountered: