#322 - Show folder name for index page

This commit is contained in:
Elio Struyf
2022-04-12 17:07:28 +02:00
parent bd47a09d1e
commit 31ca9d4e8b
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -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;
}