Replies: 2 comments 2 replies
-
|
For backward compatibility with Netlify/Decap CMS, we are not going to change the default. Also, not everyone is using GitHub Pages (Jekyll) or writing in English. |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Not sure if the issue is rather Jekyll-specific. Searching the net finds: |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I ran into a frustrating build failure on my static site that turned out to be caused by how Sveltia CMS generates slugs by default.
If a post title contains certain characters (e.g., ellipsis
…, em dashes—, non-ASCII quotes, etc.), Sveltia keeps the original Unicode characters in the filename. Many static site generators (and GitHub Pages in particular) don’t handle these characters well in file paths, which can result in broken builds or missing pages.Example of a problematic filename I got:
my-post-title…-with-ellipsis.mdI had to manually rename the file and push a fix:
Solution
The solution is to force ASCII-only, URL-friendly slugs in
config.yml:Without these settings, special characters in titles can silently break your site during deployment—especially on GitHub Pages or other environments that are strict about filesystem-safe filenames.
Posting this here in case anyone else is pulling their hair out over mysterious build failures. Highly recommend adding the above slug configuration if you’re using Sveltia CMS with any static site generator.
Hope this helps someone! 🚀
Beta Was this translation helpful? Give feedback.
All reactions