Skip to content

Commit

Permalink
Fix runtime errors by removing as prop from Link (#200)
Browse files Browse the repository at this point in the history
* Set metadataBase URL in page metadata generation

* Restructure mardown import

* Add removed rehypeHighlight

* Add metadata generation for content pages

* Refactor function

* Revert and fix

* Revert contentType page

* Revert content

* Fix indentation

* Fix indentation

* Revert filename changes

* Revert markdown files

* Fix linebreaks

* Remove linebreak

* Revert filename change

* Add second empty line
  • Loading branch information
ProchaLu authored Jan 8, 2025
1 parent 772d9b3 commit f20344d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions components/cards.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ const Cards = ({ items, basePath }: ICard) => {
key={`singleCard-${singleCard.slug}`}
>
<Link
href={`/${basePath}/[id]`}
as={`/${basePath}/${singleCard.slug}`}
href={`/${basePath}/${singleCard.slug}`}
className="no-underline"
>
<div className="overflow-hidden max-h-40 mb-2">
Expand Down
3 changes: 1 addition & 2 deletions components/notes/note.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ import type { IContent } from '../../utils/content';
export function Note({ date, title, slug, basePath }: IContent) {
return (
<Link
href={`/${basePath}/[id]`}
as={`/${basePath}/${slug}`}
href={`/${basePath}/${slug}`}
className="cursor-pointer no-underline hover:underline"
>
<article className="flex flex-col mb-4 sm:mb-0 sm:flex-row sm:items-center">
Expand Down

0 comments on commit f20344d

Please sign in to comment.