Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: remove entry microformats #9

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
103 changes: 49 additions & 54 deletions app/articles/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,62 +157,57 @@ export default async function SinglePost({

return (
<Layout>
<div className="h-entry">
<script
type="application/ld+json"
dangerouslySetInnerHTML={{ __html: JSON.stringify(schema) }}
<script
type="application/ld+json"
dangerouslySetInnerHTML={{ __html: JSON.stringify(schema) }}
/>
<script
type="application/ld+json"
dangerouslySetInnerHTML={{ __html: JSON.stringify(breadcrumbSchema) }}
/>
<Progress />
<article
id=""
className={`section is-${article.category.slug.current}-page`}
aria-label=""
>
<Breadcrumbs
category={article.category.slug.current}
slug={article.slug.current}
title={article.title}
/>
<script
type="application/ld+json"
dangerouslySetInnerHTML={{ __html: JSON.stringify(breadcrumbSchema) }}
<header className={styles.header}>
<h1>
<Balancer>{article?.title}</Balancer>
</h1>
<div className="flex items-center justify-center">
<Link
className="capitalize"
href={`/category/${article.category.slug.current}`}
>
{article.category.title}
</Link>
<span className="mx-4">|</span>
<LocalDate dateString={article?.publishedAt} />
<span className="mx-4">|</span>
<p className={styles.readingTime}>
{article.estimatedReadingTime} min read
</p>
</div>
</header>
<TableOfContents outline={outline as any} />
<PortableText
components={components as any}
value={article.body as any}
/>
<Progress />
<article
id=""
className={`section is-${article.category.slug.current}-page e-content`}
aria-label=""
>
<Breadcrumbs
category={article.category.slug.current}
slug={article.slug.current}
title={article.title}
/>
<header className={styles.header}>
<h1 className="p-name">
<Balancer>{article?.title}</Balancer>
</h1>
<div className="flex items-center justify-center">
<Link
className="capitalize"
href={`/category/${article.category.slug.current}`}
>
{article.category.title}
</Link>
<span className="mx-4">|</span>
<LocalDate
className="dt-published"
dateString={article?.publishedAt}
/>
<span className="mx-4">|</span>
<p className={styles.readingTime}>
{article.estimatedReadingTime} min read
</p>
</div>
</header>
<TableOfContents outline={outline as any} />
<PortableText
components={components as any}
value={article.body as any}
/>
</article>
<Tags tags={article.tags} />
<AuthorBio
excerpt={article?.excerpt}
title={article?.excerpt}
slug={params.slug}
/>
<PostNavigation previous={previous} next={next} />
</div>
</article>
<Tags tags={article.tags} />
<AuthorBio
excerpt={article?.excerpt}
title={article?.excerpt}
slug={params.slug}
/>
<PostNavigation previous={previous} next={next} />
</Layout>
);
}
10 changes: 3 additions & 7 deletions app/components/AuthorBio/AuthorBio.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import Image from "next/image";
import classNames from "classnames";

import styles from "./AuthorBio.module.css";
import Link from "next/link";

export const AuthorBio: FC<AuthorBioProps> = ({ excerpt, title, slug }) => {
const url = `${process.env.NEXT_PUBLIC_SITE_DOMAIN}/${slug}`;
Expand All @@ -31,12 +30,9 @@ export const AuthorBio: FC<AuthorBioProps> = ({ excerpt, title, slug }) => {
<strong>
Written by <span className="p-name">Daine Mawer</span>.
</strong>{" "}
Enjoy reading the{" "}
<Link className="u-url" href={slug}>
article
</Link>
? Im always posting new content. If you liked what you read, please
subscribe to my <a href="/rss">RSS feed </a> or follow me on{" "}
Enjoy reading the article? Im always posting new content. If you liked
what you read, please subscribe to my <a href="/rss">RSS feed </a> or
follow me on{" "}
<a
className="u-url"
href="https://github.com/dainemawer"
Expand Down