Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Per-sidebar name link #99

Closed
liulex opened this issue Feb 24, 2017 · 7 comments
Closed

Per-sidebar name link #99

liulex opened this issue Feb 24, 2017 · 7 comments

Comments

@liulex
Copy link
Contributor

liulex commented Feb 24, 2017

Since the name link is placed in the sidebar, it would be nice to be able to speficify different name links on different sidebars. For example:

window.$docsify = {
  nameLink: {'/': '/', '/zh-cn/': '/zh-cn/'}
}
@QingWei-Li
Copy link
Member

SEO 似乎正常了。。。
image

@liulex
Copy link
Contributor Author

liulex commented Feb 24, 2017

为什么会选到中间那句。。😂

另外,我在 Nginx 里将 https://docs.snipaste.com/zh-cn 重定向到 https://docs.snipaste.com/#/zh-cn 了,有没有办法让 https://docs.snipaste.com/zh-cn 被搜索引擎收录到?
default

@QingWei-Li
Copy link
Member

我一直觉得 Google 爬 SPA 的逻辑很迷。。你试试把 index.html 里导航的链接改成

<nav style="position: fixed;">
    <a href="/">En</a>
    <a href="/zh-cn/">中文</a>
  </nav>

然后过段时间再试试

@liulex
Copy link
Contributor Author

liulex commented Feb 24, 2017

好的~

@liulex
Copy link
Contributor Author

liulex commented Feb 28, 2017

nameLink 本地化似乎没有效果 😂
test here
index.html

@QingWei-Li
Copy link
Member

顺序反了

@liulex
Copy link
Contributor Author

liulex commented Feb 28, 2017

😂 Thanks~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants