Respecting shouldInstallPlugins flag in front matter

This commit is contained in:
2026-06-19 17:29:06 -04:00
parent c935b050ee
commit 173109d7ca
2 changed files with 7 additions and 0 deletions
+6
View File
@@ -103,6 +103,12 @@ static IReadOnlyCollection<string> ScanDocTargets(string docsRoot)
{
continue;
}
if (!frontMatter.TryGetValue("shouldInstallPlugins", out var shouldInstallValue) ||
!string.Equals(shouldInstallValue.Trim(), "true", StringComparison.OrdinalIgnoreCase))
{
continue;
}
if (!frontMatter.TryGetValue("path", out var pathValue) || string.IsNullOrWhiteSpace(pathValue))
{
+1
View File
@@ -1,4 +1,5 @@
---
category: docs
path: Obsidian-Plugins\op.docs
shouldInstallPlugins: true
---