diff --git a/src/components/Code.astro b/src/components/Code.astro index 709f5e9..fa58787 100644 --- a/src/components/Code.astro +++ b/src/components/Code.astro @@ -9,8 +9,7 @@ const [native_html, error_type, error_message] = await native_highlighter(thpcod ---
thp
-    
+ class="language-thp">thp { no_warnings !== true && error_message !== null && ( diff --git a/src/components/Navbar.astro b/src/components/Navbar.astro index dda8e7b..53cc323 100644 --- a/src/components/Navbar.astro +++ b/src/components/Navbar.astro @@ -30,18 +30,24 @@ const { showSidebarButton = true } = Astro.props; > Learn + + - diff --git a/src/components/TwoColumn.astro b/src/components/TwoColumn.astro index 7d9dfb4..f224d19 100644 --- a/src/components/TwoColumn.astro +++ b/src/components/TwoColumn.astro @@ -1,3 +1,8 @@ -
+--- +const {cols} = Astro.props; +const grid_cols = cols ?? "grid-cols-[10rem_auto]"; +--- + +
diff --git a/src/layouts/DocsLayout.astro b/src/layouts/DocsLayout.astro index 1de543e..2d6102f 100644 --- a/src/layouts/DocsLayout.astro +++ b/src/layouts/DocsLayout.astro @@ -13,6 +13,7 @@ const indexSubpath = `/learn/index.mdx`; posts={posts} indexSubpath={indexSubpath} basePath="/learn/" + disable_container={!!frontmatter.disable_container} > diff --git a/src/layouts/PagesLayout.astro b/src/layouts/PagesLayout.astro index c7cc238..8768ffc 100644 --- a/src/layouts/PagesLayout.astro +++ b/src/layouts/PagesLayout.astro @@ -10,6 +10,7 @@ const { posts: _posts, indexSubpath, basePath, + disable_container, } = Astro.props; const posts: Record[] = _posts; @@ -78,7 +79,7 @@ for (const entry of pagesIndex) {