Adaptation: Hugo's url will handle spaces and symbols.
The content of the article supports Chinese.
url处理空格和标点符号,修复在文章中跳转另一个文章时url拼接错误
文章content支持中文(基本汉字)
URL Jump Bug
For example I created a post with the command hugo new "posts/Hello World.md"
My browser's current url is https://blog.example.com/. When I search for "hello world", there is an article called "Hello World" in the search results. When I click on it, it jumps to https://blog.example.com/posts/Hello%20World, the result is 404. Because the actual address of this post is https://blog.example.com/posts/hello-world.
Another bug is that when my current url is https://blog.example.com/posts/hello-world. When I search and jump to another post called "test", my url becomes https://blog.example.com/posts/hello-world/posts/test instead of https://blog.example.com/posts/test.
Adaptation: Hugo's url will handle spaces and symbols. The content of the article supports Chinese. url处理空格和标点符号,修复在文章中跳转另一个文章时url拼接错误 文章content支持中文(基本汉字)
URL Jump Bug
For example I created a post with the command
hugo new "posts/Hello World.md"
My browser's current url is
https://blog.example.com/
. When I search for "hello world", there is an article called "Hello World" in the search results. When I click on it, it jumps tohttps://blog.example.com/posts/Hello%20World
, the result is 404. Because the actual address of this post ishttps://blog.example.com/posts/hello-world
.Another bug is that when my current url is
https://blog.example.com/posts/hello-world
. When I search and jump to another post called "test", my url becomeshttps://blog.example.com/posts/hello-world/posts/test
instead ofhttps://blog.example.com/posts/test
.