From dffcd754c357c52692a3920f835781db38e96077 Mon Sep 17 00:00:00 2001 From: litemotiv Date: Thu, 23 Jan 2025 12:05:06 +0100 Subject: [PATCH] Capitalize article title for alphabetic sorting --- wiki/index.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wiki/index.php b/wiki/index.php index e871fdf..ec362df 100644 --- a/wiki/index.php +++ b/wiki/index.php @@ -19,6 +19,7 @@ include __DIR__."/../header.php"; { $article = basename($file, ".md"); $title = preg_match("/title: (.*)/i", file_get_contents($file), $matches) ? $matches[1] : $article; + $title = ucfirst($title); $category = preg_match("/category: (.*)/i", file_get_contents($file), $matches) ? $matches[1] : 'default'; if (array_key_exists($category, $category_to_articles))