From 98a03dc4b366fa53e993c01a5f83169fec138174 Mon Sep 17 00:00:00 2001
From: koehr <n@koehr.in>
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, () => {