Skip to content

Commit 91a7495

Browse files
fix: nested <a> in <button>
1 parent 3c7ede2 commit 91a7495

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

afterpython/_website/src/routes/+page.svelte

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -84,16 +84,13 @@
8484
</a>
8585
{/if}
8686
{#if data.contentTypes?.doc}
87-
<button
87+
<a
88+
href={dev ? env.PUBLIC_DOC_URL : resolve('/doc')}
89+
rel="external noopener noreferrer"
8890
class="rounded-lg bg-pm500 px-6 py-3 font-medium text-white transition-colors hover:bg-pm600"
8991
>
90-
<a
91-
href={dev ? env.PUBLIC_DOC_URL : resolve('/doc')}
92-
rel="external noopener noreferrer"
93-
>
94-
Go to Documentation
95-
</a>
96-
</button>
92+
Go to Documentation
93+
</a>
9794
{/if}
9895
</div>
9996

0 commit comments

Comments
 (0)