Skip to content

Commit

Permalink
Add f-partial attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
m7medVision committed Feb 20, 2024
1 parent d9825c9 commit fb057d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/MarkdownSplit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export default function MarkdownSplit({
{nextCourse && (
<div class="grow">
<a
f-partial={`/${nextCourse}`}
href={`/${nextCourse}`}
class="flex items-center gap-2 btn btn-outline flex-nowrap"
>
Expand All @@ -41,6 +42,7 @@ export default function MarkdownSplit({
{prevCourse && (
<div class="grow">
<a
f-partial={`/${prevCourse}`}
href={`/${prevCourse}`}
class="flex items-center gap-2 btn btn-outline flex-nowrap"
>
Expand Down
1 change: 1 addition & 0 deletions routes/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export default function IndexPage() {
</p>
<div class="mt-4 mb-2 flex flex-col md:flex-row justify-center items-center gap-1">
<a
f-partial="/courses"
href="/courses"
class="px-8 text-lg btn bg-base-content text-base-100 hover:bg-base-200 hover:text-base-content rounded-box"
>
Expand Down

0 comments on commit fb057d6

Please sign in to comment.