-
How should I customize the style of the 404 page? I didn't find the relevant documents.can you help me? |
Beta Was this translation helpful? Give feedback.
Answered by
huccct
Feb 14, 2023
Replies: 1 comment 2 replies
-
I think you can do this to achieve the effect 1.✔️ Step1: You should create a new folder under ./vitepress/theme and create a Layout.vue (In the Layout.vue you can define the error page you want) 2.✔️ Step2: You should import Layout.vue in theme/index.ts (In the documents, Like this, So import the Layout.vue) 3.✔️ Step3: Run the start command, and you can see I hope my answer can help you~ 🔥 |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
bd-dxg
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think you can do this to achieve the effect
1.✔️ Step1: You should create a new folder under ./vitepress/theme and create a Layout.vue (In the Layout.vue you can define the error page you want)
2.✔️ Step2: You should import Layout.vue in theme/index.ts (In the documents, Like this, So import the Layout.vue)
3.✔️ Step3: Run the start command, and you can see
I hope my answer can help you~ 🔥