\n\n---\n\n\u003Cdetails>\u003Csummary>\u003Ccode>:has()\u003C/code> CSS changes\u003C/summary>\n\u003Cp>\n\n```diff\n .custom-block {\n- padding: 16px 16px 8px;\n+ padding: 8px 16px;\n }\n\n+ .custom-block:has(.custom-block-title) {\n+ padding-top: 16px;\n+ }\n```\n\n\u003C/p>\n\u003C/details> \n\n\n### Describe alternatives you've considered\n\nYou can create custom containers yourself, like this:\n\n```md\n\u003Cdiv class=\"custom-block tip\" style=\"padding-top: 8px\">\n\n💡 This is a helpful tip.\n\n\u003C/div>\n```\n\nHowever, this is not ergonomical, nor is it future-proof (What if those class names change? What if the padding changes?).\n\n### Additional context\n\nThe use case for this already exists within Vitepress docs:\n\nhttps://github.com/vuejs/vitepress/blob/dd293484669c59a471052108995be3b8f898838d/docs/en/guide/what-is-vitepress.md?plain=1#L5-L9\n\n\n\n### Validations\n\n- [x] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\n- [x] Read the [docs](https://vitepress.dev).\n- [x] Read the [Contributing Guidelines](https://github.com/vuejs/vitepress/blob/main/.github/contributing.md).\n- [x] Check that there isn't already an issue that asks for the same feature to avoid creating a duplicate.",[],4928,"Titleless custom containers","2025-08-31T16:22:27Z","https://github.com/vuejs/vitepress/issues/4928",0.72030187,{"description":3174,"labels":3175,"number":3177,"owner":3149,"repository":3150,"state":3178,"title":3179,"updated_at":3180,"url":3181,"score":3182},"### Describe the bug\n\nnot a bug, but not sure how to do this! thanks\n\n### Reproduction\n\nthe title shows as \"Title | Title\" on home\n\n### Expected behavior\n\njust show \"Title\"\n\n### System Info\n\n```sh\nnpx envinfo --system --npmPackages vitepress --binaries --browsers\r\n\r\n\r\nNeed to install the following packages:\r\n envinfo@7.10.0\r\nOk to proceed? (y) y\r\n\r\n System:\r\n OS: macOS 13.4.1\r\n CPU: (8) arm64 Apple M2\r\n Memory: 111.17 MB / 24.00 GB\r\n Shell: 5.9 - /bin/zsh\r\n Binaries:\r\n Node: 20.4.0 - /opt/homebrew/bin/node\r\n Yarn: 1.22.19 - /opt/homebrew/bin/yarn\r\n npm: 9.7.2 - /opt/homebrew/bin/npm\r\n pnpm: 8.6.5 - ~/.nvm/versions/node/v16.15.1/bin/pnpm\r\n Browsers:\r\n Brave Browser: 114.1.52.130\r\n Safari: 16.5.2\r\n npmPackages:\r\n vitepress: 1.0.0-beta.7 => 1.0.0-beta.7\n```\n\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [X] Check if you're on the [latest VitePress version](https://github.com/vuejs/vitepress/releases/latest).\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\n- [X] Read the [docs](https://vitepress.dev).\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[3176],{"name":3146,"color":3147},2729,"closed","how to make the title show just \"Title\" on home instead of \"Title | Title\"","2023-08-12T00:04:41Z","https://github.com/vuejs/vitepress/issues/2729",0.65329915,{"description":3184,"labels":3185,"number":3187,"owner":3149,"repository":3150,"state":3178,"title":3188,"updated_at":3189,"url":3190,"score":3191},"\u003C!--\r\nNOTE:\r\nVitePress is still WIP, and it is not compatible with VuePress.\r\nPlease do not open issue about default theme missing features or something doesn't work like VuePress.\r\n-->\r\n\r\n**Describe the bug** \r\n\r\nWhen the page title is `21E08`. And after build, It will goes as `210000000`. It was treated as scientific notation number \r\n\r\n**To Reproduce** \r\n\r\nSet page frontmatter like next\r\n\r\n```yaml\r\n---\r\ntitle: 21E08\r\nsubtitle: \"xxxxx\"\r\ndate: 2021-03-05\r\ncategory: \"xxx\"\r\n---\r\n```\r\n\r\n**Expected behavior** \r\n\r\nExpect the title will be treated as string not the number\r\n\r\n**System Info** \r\n- vitepress v0.11.3\r\n- vite v2.0.0-beta.30\r\n- Node version: v15.4.0\r\n- OS version: Big Sur 11.0.1 (20B29)\r\n\r\n",[3186],{"name":3146,"color":3147},255,"Markdown Page Title Parse Error","2023-01-21T16:22:29Z","https://github.com/vuejs/vitepress/issues/255",0.6868499,{"description":3193,"labels":3194,"number":3198,"owner":3149,"repository":3150,"state":3178,"title":3199,"updated_at":3200,"url":3201,"score":3202},"### Describe the bug\n\n布局 home ,build以后不显示,最新版本\n\n### Reproduction\nlayout: home\n\nhero:\n name: xxx\n image:\n src: /logo.png\n tagline: xxx\n actions:\n - theme: brand\n text: xxx\n link: /x/xx\n\n\n### Expected behavior\n\n希望正常显示 layout:home\n\n### System Info\n\n```Text\n\"vitepress\": \"^2.0.0-alpha.5\",\n```\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [x] Check if you're on the [latest VitePress version](https://github.com/vuejs/vitepress/releases/latest).\n- [x] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\n- [x] Read the [docs](https://vitepress.dev).\n- [x] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[3195],{"name":3196,"color":3197},"need more info","bdbefc",4744,"布局 home ,build以后不显示,最新版本","2025-05-13T03:47:00Z","https://github.com/vuejs/vitepress/issues/4744",0.70041007,{"description":3204,"labels":3205,"number":274,"owner":3149,"repository":3150,"state":3178,"title":3207,"updated_at":3208,"url":3209,"score":3210},"### Describe the bug\n\nIt's an fixed Engish title. \n\n### Reproduction\n\nN/A\n\n### Expected behavior\n\nAllow custom title or translation.\n\n### System Info\n\n```shell\nN/A\n```\n\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\n- [X] Read the [docs](https://vitepress.vuejs.org).\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[3206],{"name":3146,"color":3147},"[Default Theme] VPDocAsideOutline: Allow custom title for 'On this page'","2023-01-21T14:35:36Z","https://github.com/vuejs/vitepress/issues/719",0.7022933,{"description":3212,"labels":3213,"number":3215,"owner":3149,"repository":3150,"state":3178,"title":3216,"updated_at":3217,"url":3218,"score":3219},"### Describe the bug\n\nHTML rendered within the `buildEnd` hook contain `{{ $frontmatter.title }}` rather than the actual title contained with the frontmatted metadata. \n\n### Reproduction\n\n\r\n\r\nHere is my implementation:\r\nhttps://github.com/CodyBontecou/blog/commit/cd40a9d79f9954bf7f64fd329b0ee74b06c2dadc#diff-a2c09d222e870efa333dc7e96fbe9b10bc9b289553da72641eb52f7605a2ed51\n\n### Expected behavior\n\nI expect the `buildEnd` hook to have the template `$frontmatter` variables to be the value of what it's calling, not of `{{ $frontmatter.title }}`.\n\n### System Info\n\n```sh\nSystem:\r\n OS: macOS 13.4.1\r\n CPU: (10) arm64 Apple M1 Max\r\n Memory: 128.91 MB / 32.00 GB\r\n Shell: 5.9 - /bin/zsh\r\n Binaries:\r\n Node: 16.14.2 - ~/.nvm/versions/node/v16.14.2/bin/node\r\n Yarn: 1.22.15 - ~/.nvm/versions/node/v16.14.2/bin/yarn\r\n npm: 9.6.2 - ~/.nvm/versions/node/v16.14.2/bin/npm\r\n Watchman: 2023.07.24.00 - /opt/homebrew/bin/watchman\r\n Browsers:\r\n Chrome: 115.0.5790.170\r\n Safari: 16.5.2\r\n npmPackages:\r\n vitepress: ^1.0.0-alpha.44 => 1.0.0-beta.7\n```\n\n\n### Additional context\n\nYou can see the generated file at https://codybontecou.com/feed.rss.\n\n### Validations\n\n- [X] Check if you're on the [latest VitePress version](https://github.com/vuejs/vitepress/releases/latest).\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\n- [X] Read the [docs](https://vitepress.dev).\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[3214],{"name":3146,"color":3147},2748,"Build hook buildEnd rendering $frontmatter in generated template.","2023-08-16T00:04:26Z","https://github.com/vuejs/vitepress/issues/2748",0.7052162,{"description":3221,"labels":3222,"number":3224,"owner":3149,"repository":3150,"state":3178,"title":3225,"updated_at":3226,"url":3227,"score":3228},"### Describe the bug\n\nCurrently, the title of the theme switch is `toggle dark mode` whether in light mode or dark mode.\r\n\r\n\r\n\r\n\n\n### Reproduction\n\nhttps://vitepress.dev/guide/getting-started\n\n### Expected behavior\n\nIn light mode, the title should be `toggle dark mode`; in dark mode, the title should be `toggle light mode`\n\n### System Info\n\n```Text\nBoth in Mac or Windows\n```\n\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [X] Check if you're on the [latest VitePress version](https://github.com/vuejs/vitepress/releases/latest).\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\n- [X] Read the [docs](https://vitepress.dev).\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[3223],{"name":3146,"color":3147},3214,"Theme: the title of theme switch","2023-11-25T00:04:33Z","https://github.com/vuejs/vitepress/issues/3214",0.7090056,{"description":3230,"labels":3231,"number":3233,"owner":3149,"repository":3150,"state":3178,"title":3234,"updated_at":3235,"url":3236,"score":3237},"### Describe the bug\n\nindex.md not support markdown\n\n### Reproduction\n\n\"I'm encountering an issue with VitePress where Markdown syntax in my index.md file doesn't seem to apply the expected styles on the homepage, whereas in VuePress, this works as anticipated. For instance, if I wish to include some introductory text on the main page and then guide users to the navigation bar, it appears that I need to manually write the CSS styles. Why can't I utilize Markdown for styling in this case?\"\n\n### Expected behavior\n\n\"I'm encountering an issue with VitePress where Markdown syntax in my index.md file doesn't seem to apply the expected styles on the homepage, whereas in VuePress, this works as anticipated. For instance, if I wish to include some introductory text on the main page and then guide users to the navigation bar, it appears that I need to manually write the CSS styles. Why can't I utilize Markdown for styling in this case?\"\n\n### System Info\n\n```Text\n\"I'm encountering an issue with VitePress where Markdown syntax in my index.md file doesn't seem to apply the expected styles on the homepage, whereas in VuePress, this works as anticipated. For instance, if I wish to include some introductory text on the main page and then guide users to the navigation bar, it appears that I need to manually write the CSS styles. Why can't I utilize Markdown for styling in this case?\"\n```\n\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [X] Check if you're on the [latest VitePress version](https://github.com/vuejs/vitepress/releases/latest).\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\n- [X] Read the [docs](https://vitepress.dev).\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[3232],{"name":3146,"color":3147},3409,"index.md","2024-01-13T00:04:51Z","https://github.com/vuejs/vitepress/issues/3409",0.71098405,["Reactive",3239],{},["Set"],["ShallowReactive",3242],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fySBMtHqYAh1q4XwCM1xpwNDDtbgm-r2d_uuI-T-Qx54":-1},"/vuejs/vitepress/492"]