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

[plugin-blog] Spaces and special symbols in category title #1234

Closed
Laruxo opened this issue Jan 27, 2019 · 1 comment
Closed

[plugin-blog] Spaces and special symbols in category title #1234

Laruxo opened this issue Jan 27, 2019 · 1 comment
Labels
type: feature request Request to add a new feature

Comments

@Laruxo
Copy link

Laruxo commented Jan 27, 2019

Feature request

What problem does this feature solve?

Currently in posts you can provide category title via frontmatter. The problem appears when you try to use more than one word for the title. In most sites we usually slugify the title, to make urls more seo and user friendly. But that does not happen when blog-plugin is generating category permalinks.

E.g. if I use category: Awesome Posts - category permalink becomes /category/Awesome%20Posts.html.
If I use category: awesome-posts - page title becomes awesome-posts | Category

Same issues exists with tags.

What does the proposed API look like?

In post frontmatter provide category with spaces and special symbols as needed.

How should this be implemented in your opinion?

When generating category permalink slugify the title with simple regex based replace.

Are you willing to work on this yourself?**

Yes. I already wrote a small plugin for my own blog, but I think official blog-plugin could benefit from it.

@ulivz ulivz added the type: feature request Request to add a new feature label Jan 29, 2019
@ulivz
Copy link
Member

ulivz commented Jun 4, 2019

See: #36 (comment)

@ulivz ulivz closed this as completed Jun 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature request Request to add a new feature
Projects
None yet
Development

No branches or pull requests

2 participants