diff --git a/docs/README.md b/docs/README.md index 8e293e50..8dda6acd 100644 --- a/docs/README.md +++ b/docs/README.md @@ -89,6 +89,14 @@ Code in `404.html` ``` +### Hash router +`404.html` is not SEO friendly, you can replace it use `index.html` and `data-router` [issue#7](https://github.com/QingWei-Li/docsify/issues/7) + +index.html + +```html + +``` ### CDN - UNPKG [https://unpkg.com/docsify/](https://unpkg.com/docsify/) diff --git a/docs/zh-cn.md b/docs/zh-cn.md index 745440a6..7897cb14 100644 --- a/docs/zh-cn.md +++ b/docs/zh-cn.md @@ -94,6 +94,15 @@ docsify serve docs ``` +### Hash router +`404.html` 对 SEO 不友好, 你可以用 `index.html` 代替并开启 `hash router` 功能。 [issue#7](https://github.com/QingWei-Li/docsify/issues/7) + +index.html + +```html + +``` + ### CDN - UNPKG [https://unpkg.com/docsify/](https://unpkg.com/docsify/)