It causes issues with SEO when the search engine's scraper doesn't finish running the JS to update the canonical URL for an article. There are also no alternate URLs so the canonical URL is not useful anyway (the canonical URL was originally intended to de-duplicate the "www." subdomain but "www." already redirects to the root).
<link rel="manifest" href="/manifest.webmanifest">
<link rel="search" href="https://ardislu.dev/opensearch.osdx" type="application/opensearchdescription+xml" title="ardislu.dev">
<link rel="alternate" type="application/atom+xml" title="ardislu.dev" href="/atom.xml">
- <link rel="canonical" href="https://ardislu.dev/">
<style>
@layer fonts, base, print, hljs;
function setPageMetadata(values) {
document.title = values.title;
document.querySelector('meta[name="description"]').content = values.description;
- document.querySelector('link[rel="canonical"]').href = `https://ardislu.dev${values.path}`;
document.querySelector('meta[property="og:title"]').content = values.title;
document.querySelector('meta[property="og:description"]').content = values.description;
document.querySelector('meta[property="og:url"]').content = `https://ardislu.dev${values.path}`;