chadtmiller.com/hud
A remote MCP server that shows atproto records as interactive UI inside MCP Apps hosts
place.hud.hudkit 0.3.1 Latest 5 packages
0
0
<script lang="ts">
import type { Head } from './head';
// A page's head as head.ts says it, as Grain web's OGMeta.svelte writes
// one: its title and description, Open Graph's and Twitter's card with
// its picture, its canonical URL (or noindex), and its JSON-LD; and the
// screen's first large picture preloaded, its largest paint.
let { head }: { head: Head } = $props();
// Svelte ends a component's script at the first literal closing tag it
// meets, even in a string, so the tag's name is put together.
const TAG = 'script';
</script>
<svelte:head>
<title>{head.title}</title>
<!-- A new link for each hero, its attributes set before it is in the head: one changed in place would fetch its href (another size) before its srcset said which. -->
{#if head.preload}
{#key head.preload.href}
<link rel="preload" as="image" {...head.preload} />
{/key}
{/if}
<meta name="description" content={head.description} />
{#if head.noindex}
<meta name="robots" content="noindex" />
{:else}
<meta name="robots" content="max-image-preview:large" />
<link rel="canonical" href={head.url} />
{/if}
<meta property="og:site_name" content={head.siteName} />
<meta property="og:type" content={head.type} />
<meta property="og:title" content={head.title} />
<meta property="og:description" content={head.description} />
<meta property="og:url" content={head.url} />
<meta property="og:image" content={head.image} />
{#if head.ownImage}
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
{/if}
{#if head.imageAlt}
<meta property="og:image:alt" content={head.imageAlt} />
{/if}
<meta name="twitter:card" content="summary_large_image" />
{#if head.twitter}
<meta name="twitter:site" content={head.twitter} />
{/if}
<meta name="twitter:title" content={head.title} />
<meta name="twitter:description" content={head.description} />
<meta name="twitter:image" content={head.image} />
{#if head.imageAlt}
<meta name="twitter:image:alt" content={head.imageAlt} />
{/if}
{#if head.jsonLd}
{@html `<${TAG} type="application/ld+json">${head.jsonLd}</${TAG}>`}
{/if}
</svelte:head>