cannot set page title for top-level blog list page
drasch opened this issue · comments
David Rasch commented
- I confirm that this is an issue rather than a question.
Bug report
Steps to reproduce
- try to use
id
field in config to set title - receive error if
id
includes spaces
-
I prepared a reproduction repo, here is the reproduction repo:
-
This issue doesn't need a reproduction repro, here is the steps to reproduce
What is expected?
Allow page title to be configured, either via id
property or via another config.
What is actually happening?
vuepress_blog/paginations.js: Unexpected token, expected "," (11:23)
9 | pid: "blog page title",
10 | id: "blog page title",
> 11 | filter: filters.blog page title,
Other relevant information
yarn run vuepress info
:
$ yarn run vuepress info
yarn run v1.22.10
$ /home/drasch/src/website-nika/node_modules/.bin/vuepress info
Environment Info:
System:
OS: Linux 4.15 Ubuntu 18.04.5 LTS (Bionic Beaver)
CPU: (4) x64 Intel(R) Core(TM) i5-7500T CPU @ 2.70GHz
Binaries:
Node: 15.11.0 - /tmp/yarn--1624993076268-0.011422366082651125/node
Yarn: 1.22.10 - /tmp/yarn--1624993076268-0.011422366082651125/yarn
npm: 7.6.0 - /home/linuxbrew/.linuxbrew/bin/npm
Browsers:
Chrome: Not Found
Firefox: Not Found
npmPackages:
@vuepress/core: 1.7.1
@vuepress/theme-default: 1.7.1
vuepress: ^1.5.3 => 1.7.1
npmGlobalPackages:
vuepress: Not Found
Done in 2.53s.
David Rasch commented
Apparently you can set this via the config with a title
property. I didn't understand the syntax at all. I'm still not sure I do, but now just setting the title
property and happily moving on!