简体   繁体   English

如何从URL永久链接中删除特殊字符

[英]How to remove special characters from URL permalinks

I am starting with jekyll and i'll appreciate any kind of help. 我从jekyll开始,我将不胜感激。

I am making a blog site but not in english language. 我正在制作一个博客网站,但不是英语。

Default language will be Czech so in post tittles there will be characters like ĚŠČŘŽÝÁÍ. 默认语言为捷克语,因此在标题中将包含likeŠČŘŽÝÁÍ之类的字符。

I want to use pretty permalinks with post tittle in it, but actualy it doesn't work 我想在其中使用带有标题的漂亮永久链接,但实际上它不起作用

properly in Safari browser. 在Safari浏览器中正确显示。 I am getting error 500 from server. 我从服务器收到错误500。

How to resolve it? 怎么解决呢? Is there any plugin which can convert these characters in ascii symbols escrzyai and how to install it? 是否有可以将这些字符转换为escrzyai ASCII字符的插件,以及如何安装?

I believe permalinks are determined by settings + post file names, not settings + post titles. 我相信固定链接由设置+帖子文件名而不是设置+帖子标题决定。

So you should have files names like 所以你应该有这样的文件名

_posts\2014-04-12-hello-world.md

instead of 代替

_posts\2014-04-12-je-každoročně-tak-veliký.md

Inside the post, you can still use post title in Czech. 在帖子内部,您仍然可以使用捷克语的帖子标题。

Permalinks' documentation is here , note if you have Czech categories and you use them in permalinks, you will still get into trouble, so it's better to avoid Czech categories in permalinks. 永久链接的文档在此处 ,请注意,如果您有捷克类别并且在永久链接中使用它们,仍然会遇到麻烦,因此最好避免在永久链接中使用捷克类别。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM