Add u-url

This commit is contained in:
Jade Ellis
2024-07-16 17:09:29 +01:00
parent 58d3d01cbe
commit 792d6af652
@@ -9,12 +9,13 @@
// if (data.ghReleaseData) { // if (data.ghReleaseData) {
// GhReleasesDownload = import("$lib/GhReleasesDownload.svelte").then((m) => m.default) // GhReleasesDownload = import("$lib/GhReleasesDownload.svelte").then((m) => m.default)
// } // }
$: canonical = SITE_URL + "/blog/" + data.post.canonical
</script> </script>
<SvelteSeo <SvelteSeo
title={data.post.title} title={data.post.title}
description={data.post.description} description={data.post.description}
canonical={SITE_URL + "/blog/" + data.post.canonical} {canonical}
twitter={{ twitter={{
card: "summary", card: "summary",
// site: "@primalmovement", // site: "@primalmovement",
@@ -31,9 +32,9 @@
<article class="h-entry"> <article class="h-entry">
<h1 id="title" class="p-name">{data.post.title}</h1> <h1 id="title" class="p-name">{data.post.title}</h1>
<aside> <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 >{new Date(data.post.date).toLocaleDateString()}</time
> ></a>
</aside> </aside>
<Toc headings={data.post.headings} /> <Toc headings={data.post.headings} />
<!-- {#await GhReleasesDownload} <!-- {#await GhReleasesDownload}
@@ -51,4 +52,8 @@
aside { aside {
font-size: 0.85em; font-size: 0.85em;
} }
aside a {
color: currentColor;
text-decoration: unset;
}
</style> </style>