typemill / typemill

Typemill is a lightweight, flat-file CMS designed for simple, fast, and flexible website and eBook creation using Markdown.
https://typemill.net
MIT License
424 stars 60 forks source link

Add an option to disable file prefixes from being cut off from slugs #427

Open Alzarath opened 4 months ago

Alzarath commented 4 months ago

I use Typemill for personal use in conjunction with other editors that I sync the markdown files with. Typemill cuts the first word off of the slug of a hyphenated file name. Being made to add an extra prefix to every file is inconvenient and ugly to me. I'd like the option to have a file named e.g. lorem-ipsum.md, but doing so, lorem is getting cut out of the slug.

I would like all files to be sorted alphabetically anyways, so the prefixes only further inconvenience me when I add files in-between.

I think that making a site-wide option to disable this behavior, allowing the full file name to be used in the slug, would fix these issues for me. I expect this would disable the ability to sort files arbitrarily, which is an acceptable compromise for me.

trendschau commented 4 months ago

Thank you for the feedback, That is a bit out of scope right now, it requires quite some changes and will break some logic, as you already noted. Also it sounds very special to me, so maybe it is a good case for a fork.