Skip to content

Commit d896a08

Browse files
committed
Modifier some css identifier
- Added .post class - Moved #back-button to main div
1 parent 77709ab commit d896a08

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

src/components/BackButton.astro

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ import { SITE } from "@/config";
66

77
{
88
SITE.showBackButton && (
9-
<div class="mx-auto flex w-full max-w-app items-center justify-start px-2">
9+
<div
10+
id="back-button"
11+
class="mx-auto flex w-full max-w-app items-center justify-start px-2"
12+
>
1013
<LinkButton
11-
id="back-button"
1214
href="/"
1315
class="focus-outline mt-8 mb-2 flex hover:text-foreground/75"
1416
>

src/layouts/PostDetails.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ const nextPost =
8787
<main
8888
id="main-content"
8989
class:list={[
90-
"mx-auto w-full max-w-app px-4 pb-12",
90+
"post mx-auto w-full max-w-app px-4 pb-12",
9191
{ "mt-8": !SITE.showBackButton },
9292
]}
9393
data-pagefind-body

0 commit comments

Comments
 (0)