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

如何使用 category_map 这项配置? #908

Closed
yujiangshui opened this Issue Nov 10, 2014 · 3 comments

Comments

3 participants
@yujiangshui

yujiangshui commented Nov 10, 2014

这项配置是否是用来设置一个 category 的别名,然后组合 url 的时候,用这个 slug 来替代 category 名称?

那这项配置要如何使用?可否写个配置 demo?我试过对象键值对、回车换行等等,都不行,此外键值对是否分别是当前 name 和想要的 slug ?

@xing5

This comment has been minimized.

Show comment
Hide comment
@xing5

xing5 Nov 13, 2014

是的,仅仅会改变url。

# Display 'Tech' in web pages, but 'Hack' in url.
category_map:
  Tech: Hack
  name2: slug2
  name3: slug3
  ...

xing5 commented Nov 13, 2014

是的,仅仅会改变url。

# Display 'Tech' in web pages, but 'Hack' in url.
category_map:
  Tech: Hack
  name2: slug2
  name3: slug3
  ...
@yujiangshui

This comment has been minimized.

Show comment
Hide comment
@yujiangshui

yujiangshui commented Nov 16, 2014

Thanks

@leesei

This comment has been minimized.

Show comment
Hide comment
@leesei

leesei Dec 9, 2014

Member

Please close this issue.

Member

leesei commented Dec 9, 2014

Please close this issue.

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