Skip to content

Commit

Permalink
chore: adjust heading
Browse files Browse the repository at this point in the history
  • Loading branch information
wodeni committed Jan 23, 2024
1 parent c7897ba commit 4352a92
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Posts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export default () => {
{post.attributes.date}
</span>
<A
className="font-bold"
href={`/posts/${post.path
.split("/")
.pop()!
Expand Down
6 changes: 5 additions & 1 deletion src/common.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,18 @@ export const Section = ({
};
export const A = ({
href,
className,
children,
}: {
href: string;
className?: string;
children: ReactNode;
}) => {
return (
<a
className={`underline decoration-primary/50 dark:decoration-primary/70 decoration-2 cursor-pointer hover:decoration-primary hover:decoration-3 ease-in-out duration-100`}
className={`underline decoration-primary/50 dark:decoration-primary/70 decoration-2 cursor-pointer hover:decoration-primary hover:decoration-3 ease-in-out duration-100 ${
className ?? ""
}`}
href={href}
>
{children}
Expand Down

0 comments on commit 4352a92

Please sign in to comment.