generated from nhcarrigan/template
fix: dedupe read time
This commit is contained in:
+1
-1
@@ -24,7 +24,7 @@ const Home = (): JSX.Element => {
|
|||||||
<h2><a className="underline" href={`/post/${post.slug}`}>{post.data.title}</a></h2>
|
<h2><a className="underline" href={`/post/${post.slug}`}>{post.data.title}</a></h2>
|
||||||
<p className="italic text-center">{post.data.date.toLocaleDateString("en-GB", { day: "numeric", month: "long", year: "numeric" })}</p>
|
<p className="italic text-center">{post.data.date.toLocaleDateString("en-GB", { day: "numeric", month: "long", year: "numeric" })}</p>
|
||||||
<p className="text-center">{post.data.summary}</p>
|
<p className="text-center">{post.data.summary}</p>
|
||||||
<p className="text-center">{`A ${post.data.readtime} read.`}</p>
|
<p className="text-center">{`A ${post.data.readtime}.`}</p>
|
||||||
</div>;
|
</div>;
|
||||||
})}
|
})}
|
||||||
</main>
|
</main>
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ const Page = async({
|
|||||||
{ day: "numeric", month: "long", weekday: "long", year: "numeric" },
|
{ day: "numeric", month: "long", weekday: "long", year: "numeric" },
|
||||||
)}`}</p>
|
)}`}</p>
|
||||||
<h2 className="text-center">{post.data.summary}</h2>
|
<h2 className="text-center">{post.data.summary}</h2>
|
||||||
<p className="text-center">{`A ${post.data.readtime} read.`}</p>
|
<p className="text-center">{`A ${post.data.readtime}.`}</p>
|
||||||
<Rule />
|
<Rule />
|
||||||
<Markdown rehypePlugins={[ rehypeRaw ]} remarkPlugins={[ remarkGfm ]}>
|
<Markdown rehypePlugins={[ rehypeRaw ]} remarkPlugins={[ remarkGfm ]}>
|
||||||
{post.content}
|
{post.content}
|
||||||
|
|||||||
Reference in New Issue
Block a user