Skip to content

Commit

Permalink
Change link colors in blog items
Browse files Browse the repository at this point in the history
  • Loading branch information
damianstasik committed Sep 19, 2023
1 parent d56b024 commit 1194a52
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
12 changes: 8 additions & 4 deletions src/theme/BlogLastPost/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,15 @@ export default function BlogLastPost({ item }) {
>
{formattedDate}
</time>
<Link to={permalink}>
<h3 className="leading-snug text-3xl font-bold my-2 line-clamp-5">

<h3 className="leading-snug text-3xl font-bold my-2 line-clamp-5">
<Link
to={permalink}
className="text-gray-900 dark:text-gray-50 hover:text-brand-700 dark:hover:text-brand-500"
>
{title}
</h3>
</Link>
</Link>
</h3>
<p className="text-gray-600 dark:text-gray-500 mb-4 line-clamp-3">
{description}
</p>
Expand Down
12 changes: 8 additions & 4 deletions src/theme/BlogListItem/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,15 @@ export default function BlogListItem({ item }) {
>
{formattedDate}
</time>
<Link to={permalink}>
<h3 className="leading-snug text-xl font-bold my-2 line-clamp-3">

<h3 className="leading-snug text-xl font-bold my-2 line-clamp-3">
<Link
to={permalink}
className="text-gray-900 dark:text-gray-50 hover:text-brand-700 dark:hover:text-brand-500"
>
{title}
</h3>
</Link>
</Link>
</h3>
<p className="text-gray-600 dark:text-gray-500 mb-4 line-clamp-3">
{description}
</p>
Expand Down

0 comments on commit 1194a52

Please sign in to comment.