Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

page title is capitalized file name #17

Open
iacore opened this issue Jun 17, 2024 · 4 comments
Open

page title is capitalized file name #17

iacore opened this issue Jun 17, 2024 · 4 comments

Comments

@iacore
Copy link

iacore commented Jun 17, 2024

for the record, that's neither the file name or the page title
is a bit confusing

image

image

@oscarotero
Copy link
Member

oscarotero commented Jun 17, 2024

The list of elements is generated from the file name (removing the extension, replacing - and _ to spaces and converted to title case). This is the function.

The reason is because the real file name is not very friendly for some people. And showing the title (or any other value) requires to load and parse the file, which is slow for sites with many pages or if you're using a remote storage (like GitHub).

@iacore
Copy link
Author

iacore commented Jun 18, 2024

I see. I don't have much motivation for a change since I only just started using Lume CMS.

If I have to use this CMS daily, I would much prefer showing the full filename (e.g. src/file.pug) since I can look at the block of text as-is without parsing what it means.

@oscarotero
Copy link
Member

LumeCMS use the file paths omiting the collection root folder. For example, if you define a collection and the storage is src:articles/*.md, the articles/ folder is not included in entry name and this file would be displayed as First article.

But it can show subfolders. If the file is /articles/first-article/chapter-1.md it would take first-article/chapter-1.md to generate the name.

Example:
imaxe

@iacore
Copy link
Author

iacore commented Jun 18, 2024

But it can show subfolders. If the file is /articles/first-article/chapter-1.md it would take first-article/chapter-1.md to generate the name.

Example: [image]

oh well

this is more confusing isn't it

the folder/file analogy is perfect, i think. there is no need to unsluggify the filenames.

using open/closed folder icon would also be better here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants