From 2f9853c520f5b15d5de7c663f52cca54fa24435a Mon Sep 17 00:00:00 2001 From: Mike Phares Date: Tue, 8 Aug 2023 12:56:03 -0700 Subject: [PATCH] Only skip index if in a .kanbn directory --- Helpers/HelperMarkdown.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Helpers/HelperMarkdown.cs b/Helpers/HelperMarkdown.cs index 2a5c609..8924253 100644 --- a/Helpers/HelperMarkdown.cs +++ b/Helpers/HelperMarkdown.cs @@ -871,7 +871,7 @@ internal static partial class HelperMarkdown List<(MarkdownFile MarkdownFile, string[] Lines)> sourceCollection = record.StartAt is null ? collection : GetCollection(appSettings, record); foreach ((MarkdownFile markdownFile, string[] lines) in collection) { - if (markdownFile.FileNameWithoutExtension == "index") + if (markdownFile.FileNameWithoutExtension == "index" && markdownFile.Directory.EndsWith(".kanbn")) continue; if (!File.Exists(markdownFile.File)) continue;