From e3301a1805325d7e8f88f3bb753c83a824bf1c9c Mon Sep 17 00:00:00 2001 From: IanWold Date: Sun, 13 Oct 2024 18:59:58 -0500 Subject: [PATCH] Build: update topic loop to reference topic names --- build.csx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/build.csx b/build.csx index 3b1463e..6361c71 100644 --- a/build.csx +++ b/build.csx @@ -153,17 +153,17 @@ new MetalsharpProject() } } - if (post.Metadata.TryGetValue("topics", out var topicsObject) && topicsObject is IEnumerable topics) + if (post.Metadata.TryGetValue("topics", out var topicsObject) && topicsObject is IEnumerable topicNames) { - foreach (var topic in topics) + foreach (var topicName in topicNames) { - if (topicPosts.TryGetValue(seriesName, out var topicPostsList)) + if (topicPosts.TryGetValue(topicName, out var topicPostsList)) { - seriesPosts[topic] = [ ..topicPostsList, post.Metadata ]; + seriesPosts[topicName] = [ ..topicPostsList, post.Metadata ]; } else { - topicPosts.Add(topic, [ post.Metadata ]); + topicPosts.Add(topicName, [ post.Metadata ]); } } }