-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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 for transliterate URLs #1479
Comments
@chiliec Maybe we need to modify the content of md files. And I'm confused by this feature. |
You're right, in this case both posts be linked to one. But nothing critical. |
Alright, when you are ready, pull your request, I will merge it in plugin list. And I advice a tip to explain the state like #1479 (comment) . |
See Category.virtual('path').get(function() {
var catDir = ctx.config.category_dir;
if (catDir === '/') catDir = '';
if (catDir.length && catDir[catDir.length - 1] !== '/') catDir += '/';
return catDir + this.slug + '/';
}); |
Any updates on this thread? |
Hey, guys!
I want to write plugin for transliterate urls (#506) and begin it in https://github.com/Chiliec/hexo-transliterator/blob/master/index.js.
I can write
post.slug = translit(post.slug);
, but this way works only for posts and pages. Please prompt me how I can rewrite links for categories and tags? Is it possible?The text was updated successfully, but these errors were encountered: