Add u-url

This commit is contained in:
Jade Ellis 2024-07-16 17:09:29 +01:00
parent 58d3d01cbe
commit 792d6af652
No known key found for this signature in database
GPG key ID: 8705A2A3EBF77BD2

View file

@ -9,12 +9,13 @@
// if (data.ghReleaseData) {
// GhReleasesDownload = import("$lib/GhReleasesDownload.svelte").then((m) => m.default)
// }
$: canonical = SITE_URL + "/blog/" + data.post.canonical
</script>
<SvelteSeo
title={data.post.title}
description={data.post.description}
canonical={SITE_URL + "/blog/" + data.post.canonical}
{canonical}
twitter={{
card: "summary",
// site: "@primalmovement",
@ -31,9 +32,9 @@
<article class="h-entry">
<h1 id="title" class="p-name">{data.post.title}</h1>
<aside>
Published on <time class="dt-published" datetime={data.post.date}
<a class="u-url" href={canonical}>Published on <time class="dt-published" datetime={data.post.date}
>{new Date(data.post.date).toLocaleDateString()}</time
>
></a>
</aside>
<Toc headings={data.post.headings} />
<!-- {#await GhReleasesDownload}
@ -51,4 +52,8 @@
aside {
font-size: 0.85em;
}
aside a {
color: currentColor;
text-decoration: unset;
}
</style>