Skip to content

Commit 0876b96

Browse files
auto naming
1 parent 1471efd commit 0876b96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: indexer.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function readFilesAndCreateJSON($directory) {
2929
if (!isset($existingUrls[$file])) {
3030
// Add file data to JSON array only if the 'url' doesn't exist
3131
$jsonData[] = [
32-
'title' => $fileName,
32+
'title' => ucwords( str_replace('-', ' ',$fileName)),
3333
'url' => $file,
3434
'year' => $year,
3535
'tags' => $tags

0 commit comments

Comments
 (0)