Skip to content

Commit

Permalink
Small comment update
Browse files Browse the repository at this point in the history
  • Loading branch information
daveaglick committed Jan 9, 2024
1 parent 9f6882d commit d692a04
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Statiq.Web/Pipelines/Archives.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ public Archives(Templates templates)
{
ModuleList modules = new ModuleList();
// Get outputs from the pipeline(s)
// Get outputs from the pipeline(s) and merge the archive metadata with them, which is the
// magic that allows archive metadata like ArchiveFilter to be evaluated on the candidate items
modules.Add(
new ReplaceDocuments(archiveDoc.GetList(WebKeys.ArchivePipelines, new[] { nameof(Content) }).ToArray()),
new MergeMetadata(Config.FromValue(archiveDoc.Yield())).KeepExisting());
Expand Down Expand Up @@ -229,4 +230,4 @@ public static bool IsArchive(IDocument document) =>
|| document.ContainsKey(WebKeys.ArchiveFilter)
|| document.ContainsKey(WebKeys.ArchiveKey);
}
}
}

0 comments on commit d692a04

Please sign in to comment.