fix: dedupe read time
Code Analysis / SonarQube (push) Failing after 16s
Node.js CI / Lint and Test (push) Successful in 1m33s

This commit is contained in:
2025-10-29 14:49:11 -07:00
parent 297948fb46
commit 2de1f4e36e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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>
+1 -1
View File
@@ -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}