From e86d021224fd344c50b4db471c92401f8264e84b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Norman=20K=C3=B6hring?= Date: Sun, 10 Dec 2023 16:19:48 +0100 Subject: [PATCH] fix: page renders with initial linebreak --- .vitepress/theme/Layout.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.vitepress/theme/Layout.vue b/.vitepress/theme/Layout.vue index 7a01a57..471bfa4 100644 --- a/.vitepress/theme/Layout.vue +++ b/.vitepress/theme/Layout.vue @@ -60,7 +60,7 @@ onMounted(() => { function handlePageChange() { const { title, headerArt, content, uris } = getCurrentPage(page.value.title) - addText(`${headerArt}\n${title}\n\n${content}`) + addText(`\n${headerArt}\n${title}\n\n${content}`) setFooter(uris) } @@ -71,6 +71,7 @@ onMounted(() => { footerLinks, setFooter } = useTerminal(textArea.value, commands.value, pages, handlePageChange) + handlePageChange() watch(footerLinks, () => {