ThatAIguyA world of ideas

THE CONSCIOUSNESS ATLAS
Read. Experiment. Follow the evidence.

ConsciousnessLearn · Explore · Joseph Anady

Janady13/thatdeveloperguy-website / app/components/publication/PageMetadata.ts

Source identity, revision, and recovered contents.

GitHub sourceSource text recovered

Source identity

FieldRecorded value
Source typeGitHub source
Original recordJanady13/thatdeveloperguy-website / app/components/publication/PageMetadata.ts
DateNot specified in source
RepositoryJanady13/thatdeveloperguy-website
Revision2bea2ebdff0e34494bff597d4fa9c8422a0c3a94
Branchmain
Path or archive memberapp/components/publication/PageMetadata.ts
Original SHA-256d9c70cba57c8b48935a06b9dc5536debed263917f7368c0bb7024656185c4709
Git blob SHA582d79768d78dc479d308c79592797a025fc8c21
Reading-copy SHA-256d9c70cba57c8b48935a06b9dc5536debed263917f7368c0bb7024656185c4709

Original source ↗

Recovered source transcript

import type { CompiledPage } from '../../../src/contracts/page'; import { pagesByPath } from '../../../src/generated'; import { normalizePath } from '../../../src/engines/seo/urls/normalize-path'; import { truth } from '../../../src/authority/select-public-facts'; import { PRODUCTION_ORIGIN } from '../../../src/engines/seo/urls/production-origin'; import { scopedLlmsPath } from '../../../src/engines/seo/discovery/build-llms'; const SOCIAL_IMAGE = `${PRODUCTION_ORIGIN}/images/posters/lobby.webp`; export function pageForPath(pathname: string): CompiledPage | undefined { return pagesByPath[normalizePath(pathname)]; } /** One head pipeline for every route: search, canonical and social metadata stay in lockstep. */ export function pageMeta(pathname: string) { const page = pageForPath(pathname); if (!page) return [{ title: `Page not found — ${truth.org.name}` }, { name: 'robots', content: 'noindex' }]; const meta: Array<Record<string, string>> = [ { title: page.title }, { name: 'description', content: page.description }, { tagName: 'link', rel: 'canonical', href: page.canonical }, ...(page.indexPolicy === 'index' ? [{ tagName: 'link', rel: 'describedby', type: 'text/plain', href: scopedLlmsPath(page) }] : []), { property: 'og:type', content: 'website' }, { property: 'og:locale', content: 'en_US' }, { property: 'og:site_name', content: truth.org.name }, { property: 'og:title', content: page.title }, { property: 'og:description', content: page.description }, { property: 'og:url', content: page.canonical }, { property: 'og:image', content: SOCIAL_IMAGE }, { property: 'og:image:secure_url', content: SOCIAL_IMAGE }, { property: 'og:image:type', content: 'image/webp' }, { property: 'og:image:width', content: '1672' }, { property: 'og:image:height', content: '941' }, { property: 'og:image:alt', content: `${truth.org.name} illustrated technology lobby` }, { name: 'twitter:card', content: 'summary_large_image' }, { name: 'twitter:title', content: page.title }, { name: 'twitter:description', content: page.description }, { name: 'twitter:image', content: SOCIAL_IMAGE }, { name: 'twitter:image:alt', content: `${truth.org.name} illustrated technology lobby` }, ]; if (page.indexPolicy === 'noindex') meta.push({ name: 'robots', content: 'noindex' }); return meta; }

Search equations, builds, manuscript text, and recovered sources.