File tree Expand file tree Collapse file tree 15 files changed +39
-51
lines changed Expand file tree Collapse file tree 15 files changed +39
-51
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import { SITE } from "@/config";
66
77{
88 SITE .showBackButton && (
9- <div class = " mx-auto flex w-full max-w-3xl items-center justify-start px-2 " >
9+ <div class = " flex items-center justify-start" >
1010 <LinkButton
1111 id = " back-button"
1212 href = " /"
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ if (breadcrumbList[0] === "tags" && !isNaN(Number(breadcrumbList[2]))) {
2323}
2424---
2525
26- <nav class =" mx-auto mt-8 mb-1 w-full max-w-3xl px-4 " aria-label =" breadcrumb" >
26+ <nav class =" mt-8 mb-1" aria-label =" breadcrumb" >
2727 <ul
2828 class =" font-light [&>li]:inline [&>li:not(:last-child)>a]:hover:opacity-100"
2929 >
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ const { noMarginTop = false } = Astro.props;
1212---
1313
1414<footer class:list ={ [" w-full" , { " mt-auto" : ! noMarginTop }]} >
15- <Hr noPadding />
15+ <Hr />
1616 <div
1717 class =" flex flex-col items-center justify-between py-6 sm:flex-row-reverse sm:py-4"
1818 >
Original file line number Diff line number Diff line change @@ -33,11 +33,12 @@ const isActive = (path: string) => {
3333 </a >
3434 <div
3535 id =" nav-container"
36- class =" mx-auto flex max-w-3xl flex-col items-center justify-between sm:flex-row"
36+ class =" mx-auto flex flex-col items-center justify-between sm:flex-row"
3737 >
3838 <div
3939 id =" top-nav-wrap"
40- class =" relative flex w-full items-baseline justify-between bg-background p-4 sm:items-center sm:py-6"
40+ class =" relative flex w-full items-baseline justify-between bg-background py-4 sm:items-center sm:py-6"
41+ class =" relative flex w-full items-baseline justify-between bg-background py-4 sm:py-6"
4142 >
4243 <a
4344 href =" /"
Original file line number Diff line number Diff line change 11---
22export interface Props {
3- noPadding? : boolean ;
43 ariaHidden? : boolean ;
54}
65
7- const { noPadding = false , ariaHidden = true } = Astro .props ;
6+ const { ariaHidden = true } = Astro .props ;
87---
98
10- <div class ={ ` max-w-3xl mx-auto ${noPadding ? " px-0" : " px-4" } ` } >
11- <hr class =" border-border" aria-hidden ={ ariaHidden } />
12- </div >
9+ <hr class =" border-border" aria-hidden ={ ariaHidden } />
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ const { frontmatter } = Astro.props;
1919 <Header />
2020 <Breadcrumb />
2121 <main id =" main-content" >
22- <section id =" about" class =" prose mb-28 max-w-3xl prose-img:border-0" >
22+ <section id =" about" class =" prose mb-28 prose-img:border-0" >
2323 <h1 class =" text-2xl tracking-wider sm:text-3xl" >{ frontmatter .title } </h1 >
2424 <slot />
2525 </section >
Original file line number Diff line number Diff line change @@ -130,15 +130,8 @@ const structuredData = {
130130 <script is:inline src =" /toggle-theme.js" ></script >
131131 </head >
132132 <body >
133- <slot />
133+ <div id =" box" >
134+ <slot />
135+ </div >
134136 </body >
135137</html >
136-
137- <style >
138- html,
139- body {
140- margin: 0;
141- width: 100%;
142- height: 100%;
143- }
144- </style >
Original file line number Diff line number Diff line change @@ -21,11 +21,7 @@ const backUrl = SITE.showBackButton ? Astro.url.pathname : "/";
2121---
2222
2323<Breadcrumb />
24- <main
25- data-backUrl ={ backUrl }
26- id =" main-content"
27- class =" mx-auto w-full max-w-3xl px-4 pb-4"
28- >
24+ <main data-backUrl ={ backUrl } id =" main-content" class =" pb-4" >
2925 {
3026 " titleTransition" in props ? (
3127 <h1 class = " text-2xl font-semibold sm:text-3xl" >
Original file line number Diff line number Diff line change @@ -85,10 +85,7 @@ const nextPost =
8585 <BackButton />
8686 <main
8787 id =" main-content"
88- class:list ={ [
89- " mx-auto w-full max-w-3xl px-4 pb-12" ,
90- { " mt-8" : ! SITE .showBackButton },
91- ]}
88+ class:list ={ [" pb-12" , { " mt-8" : ! SITE .showBackButton }]}
9289 data-pagefind-body
9390 >
9491 <h1
@@ -101,7 +98,7 @@ const nextPost =
10198 <Datetime {pubDatetime } {modDatetime } {timezone } size =" lg" class =" my-2" />
10299 <EditPost class =" max-sm:hidden" {hideEditPost } {post } />
103100 </div >
104- <article id =" article" class =" mx-auto prose mt-8 max-w-3xl " >
101+ <article id =" article" class =" prose mt-8" >
105102 <Content />
106103 </article >
107104
Original file line number Diff line number Diff line change @@ -9,10 +9,7 @@ import { SITE } from "@/config";
99<Layout title ={ ` 404 Not Found | ${SITE .title } ` } >
1010 <Header />
1111
12- <main
13- id =" main-content"
14- class =" mx-auto flex max-w-3xl flex-1 items-center justify-center"
15- >
12+ <main id =" main-content" class =" flex flex-1 items-center justify-center" >
1613 <div class =" mb-14 flex flex-col items-center justify-center" >
1714 <h1 class =" text-9xl font-bold text-accent" >404</h1 >
1815 <span aria-hidden =" true" >¯\_(ツ)_/¯</span >
You can’t perform that action at this time.
0 commit comments