---
title:  添加404页面
# 隐藏的模块
hide:
  #  - navigation # 隐藏左边导航
  #  - toc #隐藏右边导航
  #  - footer #隐藏翻页
  #  - feedback  #隐藏反馈
tags:
  - Mkdocs
comments: false  #评论，默认不开启
---

![](https://s1.imagehub.cc/images/2024/02/02/b94cdf67258487f737cfa29829629157.png)

docs/overrides文件下新建404.html即可  

树状结构如下  

树状结构如下:  
```
$ tree -a
.
├── .github
│   ├── .DS_Store
│   └── workflows
│       └── PublishMySite.yml
├── docs
│   └── index.md
│   └──overrides
│       └──assets
│       └──404.html
│       └──main.html
│       └──partials
│          └──comments.html
│
└── mkdocs.yml
``` 