From be07b543aa41bf2b1a579d14e8f8e3b3e03d86d7 Mon Sep 17 00:00:00 2001 From: grassblock Date: Wed, 23 Jul 2025 19:13:03 +0800 Subject: [PATCH] refactor: rearrange the dom structure --- src/layouts/Layout.astro | 48 ++++++++++++++++------------------ src/pages/blog/[...slug].astro | 7 +++-- src/styles/global.css | 2 +- 3 files changed, 26 insertions(+), 31 deletions(-) diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index e761380..03bb39e 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -50,33 +50,29 @@ const { title = pageTitle, author = siteConfig.defaultAuthor.name,description = {spaEnabled && } - -
- {noscript && } -
-
- {path} -
- - - -
- -
-
-
- -
-
- + + {noscript && } +
+
+ {path} +
+ + +
+
+ +
- {noscript ? : } -
-
- -

Powered by mercury

-
-
+
+
+ + {noscript ? : } +
+
+ +

Powered by mercury

+
+
{statisticsEnabled && } { (siteConfig.neko.enabled && !noscript) && <> diff --git a/src/pages/blog/[...slug].astro b/src/pages/blog/[...slug].astro index 3d3025d..5396a57 100644 --- a/src/pages/blog/[...slug].astro +++ b/src/pages/blog/[...slug].astro @@ -58,8 +58,8 @@ const cover = customFeaturedImage || matchedImage_src?.src || firstImageURL || `
- -
+ +

← Back to posts @@ -69,8 +69,7 @@ const cover = customFeaturedImage || matchedImage_src?.src || firstImageURL || ` import "katex/dist/contrib/copy-tex.js" } - -
+