如何自定义404页面?
我想知道如何将 404 页面上的文本更改为自定义文本而不是通用消息。我该怎么办呢?标准的 404 页面看起来像 这个。
I would like to know how to change the text on the 404 page to be custom not the generic message. How would I go about this? The standard 404 page looks like
this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要
swizzle
它。1) 在
docusaurus
文件夹中打开终端/Power Shell。2) 运行:
3) 编辑文件
src/theme/NotFound.js
。参考:https://github.com/facebook/docusaurus/discussions/6030
You need to
swizzle
it.1) Open a Terminal/Power Shell inside your
docusaurus
folder.2) Run:
3) Edit the file
src/theme/NotFound.js
.Reference: https://github.com/facebook/docusaurus/discussions/6030