Comments (4)
The url will be slugified with an underscore. Try it out and let me know if it doesn't behave as expected.
Line 87 in abc9ee8
from pagemaster.
Thanks for the info, I managed to test it out a bit.
My main problem is that it doesn't handle characters with accents, like é è ô û and so on. It replaces them with nothing, resulting in names like aira_yki.md for aira_yuki.md
I think a simple
.tr( "ÀÁÂÃÄÅàáâãäåĀāĂ㥹ÇçĆćĈĉĊċČčÐðĎďĐđÈÉÊËèéêëĒēĔĕĖėĘęĚěĜĝĞğĠġĢģĤĥĦħÌÍÎÏìíîïĨĩĪīĬĭĮįİıĴĵĶķĸĹĺĻļĽľĿŀŁłÑñŃńŅņŇňʼnŊŋÑñÒÓÔÕÖØòóôõöøŌōŎŏŐőŔŕŖŗŘřŚśŜŝŞşŠšſŢţŤťŦŧÙÚÛÜùúûüŨũŪūŬŭŮůŰűŲųŴŵÝýÿŶŷŸŹźŻżŽž", "AAAAAAaaaaaaAaAaAaCcCcCcCcCcDdDdDdEEEEeeeeEeEeEeEeEeGgGgGgGgHhHhIIIIiiiiIiIiIiIiIiJjKkkLlLlLlLlLlNnNnNnNnnNnNnOOOOOOooooooOoOoOoRrRrRrSsSsSsSssTtTtTtUUUUuuuuUuUuUuUuUuUuWwYyyYyYZzZzZz"
would do the trick when you try to slugify the item.
Could this be added please? :)
from pagemaster.
I can definitely do that. I'll add it to the next point release, likely in the next week.
And just a heads up, my other gem wax_tasks has a lot more functionality, some of which might be useful to you (including diacritic normalization). Pagemaster seems like it would cover your cases but, should you outgrow it, wax_tasks is a more powerful option.
from pagemaster.
Nice, thanks a lot. I'll give wax_tasks a try indeed, the search index feature could be pretty useful.
from pagemaster.
Related Issues (18)
- consolidate input and source
- Choose output directory HOT 2
- Conditions for parsing a collection HOT 2
- JSON error HOT 2
- Command bundle exec jekyll pagemaster [collection] not working HOT 3
- Content section HOT 3
- Test + upgrade to use Jekyll 4.0 HOT 4
- add content/body option
- enable more granular/custom configuration
- Jekyll does not build after install pagemaster HOT 7
- jekyll 4.0.0 | Error: Cannot load ...check for typos and rebuild.
- Is there a permalink option HOT 6
- 'jekyll pagemaster' could not be found. HOT 1
- use as jekyll command HOT 1
- If chinese character can be supported as file name HOT 1
- permalink setting ignored HOT 4
- License HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pagemaster.