Skip to content

Commit

Permalink
Fix deployment errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jstncno committed Jan 20, 2024
1 parent 95045f2 commit 56963d8
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 20 deletions.
23 changes: 13 additions & 10 deletions lib/components/chips/Chips.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,19 @@ const Chips: React.FC<ChipsProps> = props => {
<div className="flex flex-row flex-wrap whitespace-nowrap my-2">
{tags && !!tags.length && Array.from(new Set(tags)).map((tag, idx) => (
<div className="bg-chip text-xs text-primary-dark px-3 py-1 rounded-3xl my-1 mr-1" key={idx}>
<NextLink href={getHref(tag)}>
<a className="flex" onClick={() => onClick && onClick(tag)}>
{iconLeft && React.createElement(iconLeft, {
className: 'block h-4 w-4 mr-1 -ml-1',
})}
{tag}
{iconRight && React.createElement(iconRight, {
className: 'block h-4 w-4 ml-1 -mr-1',
})}
</a>
<NextLink
href={getHref(tag)}
className="flex"
onClick={() => onClick && onClick(tag)}>

{iconLeft && React.createElement(iconLeft, {
className: 'block h-4 w-4 mr-1 -ml-1',
})}
{tag}
{iconRight && React.createElement(iconRight, {
className: 'block h-4 w-4 ml-1 -mr-1',
})}

</NextLink>
</div>
))}
Expand Down
10 changes: 5 additions & 5 deletions lib/components/logo/Logo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ export default function Logo(): JSX.Element {
const {theme} = useTheme();
const logo = theme === 'dark' ? logoDark : logoLight;
return (
<Link href="/">
<a>
<Image src={logo} alt="jstncno.dev" width={96} height={54} />
</a>
</Link>
(<Link href="/">

<Image src={logo} alt="jstncno.dev" width={96} height={54} />

</Link>)
);
}
4 changes: 2 additions & 2 deletions lib/components/typography/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ export const P: React.FC = ({children}) => {

export const TitleLink: React.FC<{href: string}> = ({children, href}) => {
return (
<NextLink href={href}>
<a className="hover:underline"><H1>{children}</H1></a>
<NextLink href={href} className="hover:underline">
<H1>{children}</H1>
</NextLink>
);
};
Expand Down
5 changes: 2 additions & 3 deletions pages/blog/[pid].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import Article from '@jstncno/lib/layouts/Article';
import Chips from '@jstncno/lib/components/chips/Chips';
import { Callout, Code, H1, H2, H3, Link, ListItem, OrderedList, P, Pre, PublishDate, UnorderedList, TitleLink, HorizontalRule } from '@jstncno/lib/components/typography';
import { getAllPosts, getPost, MarkdownPost } from '@jstncno/lib/utils';
import Head from 'next/head';

declare namespace Prism {
function highlightAll(): void;
Expand All @@ -34,13 +33,13 @@ export default function BlogPost({code, frontmatter}: MarkdownPost) {
return (
<Article>

<Head>
<>
<title>JSTNCNO Dev Blog{frontmatter.title ? ` - ${frontmatter.title}` : ''}</title>
<Script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.26.0/prism.min.js" integrity="sha512-pSVqGtpGygQlhN8ZTHXx1kqkjQr30eM+S6OoSzhHGTjh6DKdfy7WZlo1DNO9bhtM0Imf6xNLznZ7iVC2YUMwJQ==" crossOrigin="anonymous" referrerPolicy="no-referrer" />
<Script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.26.0/components/prism-core.min.js" integrity="sha512-NC2WFBzw/SdbWrzG0C+sg3iv1OITcQKsUitDcYKfOp9vxe92zpNlRc5Ad3q81kAp8Ff/fDV8pZQxdCCeyFdgLw==" crossOrigin="anonymous" referrerPolicy="no-referrer" />
<Script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.26.0/plugins/autoloader/prism-autoloader.min.js" integrity="sha512-GP4x8UWxWyh4BMbyJGOGneiTbkrWEF5izsVJByzVLodP8CuJH/n936+yQDMJJrOPUHLgyPbLiGw2rXmdvGdXHA==" crossOrigin="anonymous" referrerPolicy="no-referrer" />
<meta name="description" content={frontmatter.excerpt} />
</Head>
</>

<header>
<TitleLink href="#">{frontmatter.title}</TitleLink>
Expand Down

0 comments on commit 56963d8

Please sign in to comment.