diff --git a/src/layouts/NewDocsLayout.astro b/src/layouts/NewDocsLayout.astro index 741c40a..38f22c4 100644 --- a/src/layouts/NewDocsLayout.astro +++ b/src/layouts/NewDocsLayout.astro @@ -52,9 +52,7 @@ const posts_2 = posts // being `/spec/ast/tokens` would be `/ast/tokens` path: post.url.substring(base_len), })) - .sort((p1, p2) => - p1.frontmatter.order > p2.frontmatter.order ? 1 : -1, - ); + .sort((p1, p2) => (p1.frontmatter.order > p2.frontmatter.order ? 1 : -1)); // build a hierarchy of the files const second_level: Record> = { @@ -129,20 +127,13 @@ const rc = url_components[1] ?? ""; class="pt-12 h-screen lg:sticky top-0 fixed z-10 bg-c-bg w-60 lg:w-auto border-r-2 lg:border-0 border-c-border-1 -translate-x-64 lg:translate-x-0 transition-transform" > - @@ -203,9 +186,7 @@ const rc = url_components[1] ?? ""; class="lg:pt-12 hidden lg:block pt-4 max-h-screen overflow-x-scroll sticky top-0" >