Open jrubenoff opened 10 years ago
There's a few different places where oversized titles might muck things up. maxlength
on the input?
There can be different limits on the truncated title and the full title, but have the full title max out at something conservative.
Limits can also be checked (additionally) at an API level if the front end should ever be abstracted away from the back.
Eh, maxlength
only really works for the text post title input... for me, at least.
A character length on the Notes field is less than ideal. So for video / photo posts, that only leaves the Source input, and I tend to go long on those to give context, i.e.
—Eric Schmidt, being a creep yet again regarding online privacy at TEDxSealand 2012
For link posts, I would rather not have to manually truncate the original page's title. For quote posts, I don't want a character limit on the quotes themselves, and I can go long on the source there too.
What sorts of problems are you envisioning, other than the long slug?
Jekyll seemed to choke on lengthy YAML values. Need to look into whether that's a YAML or Jekyll issue (if either) and get official limitations if they exist.
For all slugs, and post titles for images / quotes / videos, it would be nice to enforce a reasonable character limit (say, 100 characters).
Even nicer: slugs and post titles cut themselves off at the ends of whole words, and post titles truncate with ellipses.