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
427 stars 60 forks source link

Moving files results in lower case nav titles #269

Closed thenktor closed 2 years ago

thenktor commented 2 years ago

Hi,

when doing something like this on command line:

# mv 02-groupware/03-exchange/ .

the nav titles of the 03-exchange folder and articles below change to lower case:

ksnip_20210708-142539

Therefore you have to edit the nav titles on the meta tab to get it back to normal.

EDIT: the same happens if I manually create pages with a text editor.

trendschau commented 2 years ago

Yes, I can't guarantee that everything works as expected if you use the file system directly (or an external text-editor) instead of using the author interface. It is probably because the events are missing that update the cache files with additional information like navigation title or hide/not hide. If those information are missing, then it falls back to the titles that are generated from the file-names. You can try to delete the cache files (delete manually or use the button in the admin interface). Does that help?

thenktor commented 2 years ago

Sorry, forgot to mention: I've already tried to delete the content of the cache dir. Doesn't make a difference.

trendschau commented 2 years ago

Sorry for delay: I just tried it with a live website and ftp, the workflow is the following:

The workflow is not very intuitive, I know, but the use case is not very common, so I do not really want to spend time to improve it. One improvement could be to change the button function from "clear cache" to "recreate cache" but for me it is low prio right now.

Does that help?

thenktor commented 2 years ago

Indeed it works that way.

trendschau commented 2 years ago

I changed the clear cache functionality to a recreate cache functionality, so the important parts of the cache will work without visiting a frontend page as of version 1.4.9.

trendschau commented 2 years ago

This should be fixed with version 1.5.0, please read the news for the release because it has some breaking changes, especially if you use ftp or similar to change content files: https://typemill.net/news/version-1-5-0-rename-slugs