Skip to content

Commit e045b29

Browse files
committed
add edit link
1 parent 1b3a532 commit e045b29

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

src/pages/software/[slug].astro

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -195,12 +195,23 @@ const { entry } = Astro.props;
195195
</div>
196196
</div>
197197
</div>
198-
<Button variant={"outline"}>
199-
<a href="/software/" class="flex items-center text-foreground">
200-
<Icon name="bx:arrow-back" class="size-4 mr-2" />
201-
View All Software
202-
</a>
203-
</Button>
198+
<div class="w-full mt-8 flex items-center justify-between">
199+
<Button variant={"outline"}>
200+
<a href="/software/" class="flex items-center text-foreground">
201+
<Icon name="bx:arrow-back" class="size-4 mr-2" />
202+
View All Software
203+
</a>
204+
</Button>
205+
<Button variant={"link"}>
206+
<a
207+
target="_blank"
208+
href=`https://github.com/ankitjaininfo/india-dev-stack/blob/main/src/content/software/${entry.id}.yaml`
209+
class="flex items-center text-muted-foreground">
210+
<Icon name="bx:edit" class="size-4 mr-2" />
211+
Edit this page on Github
212+
</a>
213+
</Button>
214+
</div>
204215
</div>
205216
</Container>
206217
</Layout>

0 commit comments

Comments
 (0)