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

内容和指向内容的参照变量需要分割 #4

Open
Feng-Gao opened this issue Jun 16, 2017 · 0 comments
Open

内容和指向内容的参照变量需要分割 #4

Feng-Gao opened this issue Jun 16, 2017 · 0 comments
Assignees

Comments

@Feng-Gao
Copy link
Contributor

考虑到所有文字内容都会在后续引入i18n支持,至少保障中文和英文的内容。因此目前在页面模板生成过程中,对指向内容的参照变量需要分割开,使得内容可以被翻译,而不破坏本身的页面模板中对css内容填充、对链接生成造成影像。

建议为每个collection添加一个slug,将永久链接的模式从path改为slug,并在template中对其他可能需要指向collection内容的变量,都做调整,统一指向slug。

此问题和 #1 需同步来看,找到合适解决方式。

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

No branches or pull requests

2 participants