From db5aca2b8ddacf764f6a1ccd5991277049903746 Mon Sep 17 00:00:00 2001 From: saberzero1 Date: Wed, 27 May 2026 00:17:45 +0200 Subject: [PATCH] fix: apply default position when installing plugins --- quartz/cli/plugin-git-handlers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quartz/cli/plugin-git-handlers.js b/quartz/cli/plugin-git-handlers.js index 3a2278d..fb475cd 100644 --- a/quartz/cli/plugin-git-handlers.js +++ b/quartz/cli/plugin-git-handlers.js @@ -1311,13 +1311,13 @@ export async function handlePluginAdd( } if (manifest?.components) { + const layoutPositions = new Set(["left", "right", "beforeBody", "afterBody"]) const firstComponentKey = Object.keys(manifest.components)[0] const comp = manifest.components[firstComponentKey] - if (comp?.defaultPosition) { + if (comp?.defaultPosition && layoutPositions.has(comp.defaultPosition)) { newEntry.layout = { position: comp.defaultPosition, priority: comp.defaultPriority ?? 50, - display: "all", } } }