pys
1
I make a testing.
-
Set filename.
.e.g
home.md
-
Open this page and got url
http://localhost:1313/-%E8%8B%B1%E8%AF%AD%E8%AF%AD%E6%B3%95.html
The path is
-%E8%8B%B1%E8%AF%AD%E8%AF%AD%E6%B3%95.html
-
Call urlize.
{{ $str := "π home" }}
{{ $str | urlize }} // home
Obviously missing a symbol β-β. So, how can I get same strings?
Letβs take a step back:
- why would you want a smiley being part of a file name?
- why not just put the smiley in the title and use a file name that could have been used and viewed in browsers 10 years ago?
URLIZE creates a string that removed all the special characters (which smileys are part of) from the url.
pys
4
Thanks for reply.
For first question: emoji just for fun.
Second: actually there no titles all of my articles.Filename as their titles.
I think you will have to go with frontmatter on this. Title with the smiley and filename with something nice with characters, dashes, dots and digits.