mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-25 04:20:02 +00:00
Scaffold cloned from apps/zen-docs. Port 3008. Content authored from the settled state of ~/work/lux/pulsar/main (README, EC README, bridge doc, extraction roadmaps, NIST-SUBMISSION, SUBMISSION, CHANGELOG, SECURITY, postmortem). Math rendered with KaTeX. Information architecture: intro -> getting-started -> protocol -> reference -> proofs -> security -> nist-mptc -> postmortem -> changelog. Build clean: pnpm --filter=pulsar-docs build && pnpm --filter=pulsar-docs dev.
25 lines
570 B
TypeScript
25 lines
570 B
TypeScript
import type { Metadata } from 'next';
|
|
|
|
export const baseUrl = new URL(
|
|
process.env.NEXT_PUBLIC_SITE_URL ?? 'https://pulsar.lux.network',
|
|
);
|
|
|
|
export function createMetadata(override: Metadata): Metadata {
|
|
return {
|
|
...override,
|
|
openGraph: {
|
|
title: override.title ?? undefined,
|
|
description: override.description ?? undefined,
|
|
url: baseUrl,
|
|
siteName: 'Pulsar',
|
|
type: 'website',
|
|
...override.openGraph,
|
|
},
|
|
twitter: {
|
|
card: 'summary_large_image',
|
|
...override.twitter,
|
|
},
|
|
metadataBase: baseUrl,
|
|
};
|
|
}
|