Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2 from UniPro-tech/XSS-Patch
Browse files Browse the repository at this point in the history
Xss patch
  • Loading branch information
yuito-it authored Mar 23, 2024
2 parents d2fe9ff + eac9b26 commit 950b7ce
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/cover-image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const CoverImage = ({ title, src, slug, nolazy }: Props) => {
return (
<div className="sm:mx-0">
{slug ? (
<Link as={`/posts/${slug}`} href="/posts/[slug]" aria-label={title}>
<Link as='/posts/'+slug href="/posts/[slug]" aria-label={title}>
{image}
</Link>
) : (
Expand Down
2 changes: 1 addition & 1 deletion components/hero-post.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const HeroPost = ({
<div>
<h3 className="mb-4 text-4xl lg:text-5xl leading-tight">
<Link
as={`/posts/${slug}`}
as='/posts/'+slug
href="/posts/[slug]"
className="hover:underline"
>
Expand Down
2 changes: 1 addition & 1 deletion components/post-preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const PostPreview = ({
</div>
<h3 className="text-3xl mb-3 leading-snug">
<Link
as={`/posts/${slug}`}
as='/posts/'+slug
href="/posts/[slug]"
className="hover:underline"
>
Expand Down

0 comments on commit 950b7ce

Please sign in to comment.