We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dda4f74 commit 99db2f2Copy full SHA for 99db2f2
src/services/PartsKit.php
@@ -87,7 +87,13 @@ public static function getNav(): array
87
88
$path = str_replace($partsPath, '', $templatePath);
89
$pathParts = explode('/', $path);
90
- $title = self::_formatTitle(end($pathParts));
+ $lastPart = end($pathParts);
91
+
92
+ if(str_starts_with($lastPart, '_')) {
93
+ continue;
94
+ }
95
96
+ $title = self::_formatTitle($lastPart);
97
$url = is_file($templatePath)
98
? '/' . $partsKitFolderName . '/' . self::_removeExtension($path)
99
: null;
0 commit comments