mirror of
https://github.com/estruyf/vscode-front-matter.git
synced 2026-08-07 09:23:00 +02:00
#322 - Show folder name for index page
This commit is contained in:
@@ -19,7 +19,7 @@ const FileItem: React.FunctionComponent<IFileItemProps> = ({ name, folderName, p
|
||||
};
|
||||
|
||||
const itemName = useMemo(() => {
|
||||
if (folderName && name.startsWith("index.md")) {
|
||||
if (folderName && name.includes("index.")) {
|
||||
return folderName;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user