Skip to content

Commit 3b3f467

Browse files
committed
fix: update edit post link styling and text
1 parent ce5b57b commit 3b3f467

File tree

2 files changed

+13
-17
lines changed

2 files changed

+13
-17
lines changed

src/components/EditPost.astro

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,17 @@ const showEditPost =
1818

1919
{
2020
showEditPost && (
21-
<div class:list={["opacity-80", className]}>
22-
<span aria-hidden="true" class="max-sm:hidden">
23-
|
24-
</span>
25-
<a
26-
class="space-x-1.5 hover:opacity-75"
27-
href={href}
28-
rel="noopener noreferrer"
29-
target="_blank"
30-
>
31-
<IconEdit class="inline-block size-6" />
32-
<span class="italic max-sm:text-sm sm:inline">
33-
{SITE.editPost.text}
34-
</span>
35-
</a>
36-
</div>
21+
<a
22+
href={href}
23+
target="_blank"
24+
rel="noopener noreferrer"
25+
class:list={[
26+
"flex justify-baseline gap-1.5 opacity-80 hover:text-accent",
27+
className,
28+
]}
29+
>
30+
<IconEdit class="inline-block" />
31+
<span>{SITE.editPost.text}</span>
32+
</a>
3733
)
3834
}

src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const SITE = {
1313
showBackButton: true, // show back button in post detail
1414
editPost: {
1515
enabled: true,
16-
text: "Suggest Changes",
16+
text: "Edit page",
1717
url: "https://github.com/satnaing/astro-paper/edit/main/",
1818
},
1919
dynamicOgImage: true,

0 commit comments

Comments
 (0)