Skip to content

Commit

Permalink
レイアウト修正
Browse files Browse the repository at this point in the history
  • Loading branch information
InkoHX committed Oct 23, 2024
1 parent 39ca660 commit a42a412
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/layouts/BaseLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const canonicalLink = Astro.site?.href
---

<!doctype html>
<html lang="ja">
<html class="scroll-mt-16 scroll-smooth" lang="ja">
<head>
<ViewTransitions />
{canonicalLink && <link rel="canonical" href={canonicalLink} />}
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/MDXLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const { frontmatter } = Astro.props
</div>
</div>
<Container class="px-4 py-8">
<article class="prose mx-auto max-w-4xl prose-code:px-1">
<article class="prose mx-auto max-w-4xl prose-headings:scroll-mt-16">
<slot />
</article>
</Container>
Expand Down

0 comments on commit a42a412

Please sign in to comment.