Skip to content

Commit

Permalink
chore: ✏️ Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
luximus-hunter committed Dec 5, 2024
1 parent ad9bff5 commit 21c63ba
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Publish on GitHub Pages

on:
push:
branches:
branches:
- main

permissions:
Expand Down
48 changes: 24 additions & 24 deletions .lume/_includes/layouts/problem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,34 +51,34 @@ export default (data: Data, helpers: Lume.Helpers) => {
</nav>

<h2 class="text-4xl font-bold text-center mb-2">Solution for Part One</h2>
{hasPartOne ? (
<>
<h4 class="text-xl italic text-center mb-2 underline">
<a href={data.partOneLink}>
Part one on Github
</a>
</h4>
<div dangerouslySetInnerHTML={{ __html: data.partOne as string }} />
</>
) : (
<p class="text-center">No solution provided yet.</p>
)}
{hasPartOne
? (
<>
<h4 class="text-xl italic text-center mb-2 underline">
<a href={data.partOneLink}>
Part one on Github
</a>
</h4>
<div dangerouslySetInnerHTML={{ __html: data.partOne as string }} />
</>
)
: <p class="text-center">No solution provided yet.</p>}

<h2 class="text-4xl font-bold text-center mt-12 mb-2">
Solution for Part Two
</h2>
{hasPartTwo ? (
<>
<h4 class="text-xl italic text-center mb-2 underline">
<a href={data.partTwoLink}>
Part two on Github
</a>
</h4>
<div dangerouslySetInnerHTML={{ __html: data.partTwo as string }} />
</>
) : (
<p class="text-center">No solution provided yet.</p>
)}
{hasPartTwo
? (
<>
<h4 class="text-xl italic text-center mb-2 underline">
<a href={data.partTwoLink}>
Part two on Github
</a>
</h4>
<div dangerouslySetInnerHTML={{ __html: data.partTwo as string }} />
</>
)
: <p class="text-center">No solution provided yet.</p>}
</>
);
};
2 changes: 1 addition & 1 deletion _config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ site.use(
},
},
},
})
}),
);
site.use(postcss());
site.use(jsx());
Expand Down

0 comments on commit 21c63ba

Please sign in to comment.