johnandersen777.bsky.social/knotless
git that lives in your Atmosphere account
Forked from chadtmiller.com/knotless
0
0
<script lang="ts">
import { page } from '$app/state';
import { counted } from '#lib/notifications.svelte.ts';
/**
* A page's title, with how many notifications are new in the tab, and what it says of itself to whatever unfurls a link
* to it: what it is about, and the card it unfurls into, by its path; and the Atom `feed` of what it lists, for feed readers to find.
*/
let {
title,
about,
card,
feed
}: {
title: string;
about?: string | null;
card?: string;
feed?: { title: string; href: string };
} = $props();
</script>
<svelte:head>
<title>{counted(title)}</title>
<meta property="og:site_name" content="knotless" />
<meta property="og:title" content={title} />
{#if about}
<meta name="description" content={about} />
<meta property="og:description" content={about} />
{/if}
{#if card}
<meta property="og:image" content={page.url.origin + card} />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta name="twitter:card" content="summary_large_image" />
{/if}
{#if feed}<link
rel="alternate"
type="application/atom+xml"
title={feed.title}
href={feed.href}
/>{/if}
</svelte:head>