mirror of
https://github.com/hanzo-apps/hanzo.ai.git
synced 2026-10-30 14:58:08 +00:00
Fifteen of the nineteen shared paths already had a layout carrying the page's title, description and canonical URL through pageMeta. Writing the go-import tag as a fresh file took all of that with it — the regression pageMeta exists to prevent, reintroduced by the commit before this one. The tag is a field on pageMeta now, so a page states its metadata in one call and the two facts cannot displace each other. Passing it as an unmodelled property would have been a type error at best and silently dropped at worst.
19 lines
709 B
TypeScript
19 lines
709 B
TypeScript
import type { Metadata } from 'next'
|
|
import { goImport } from '@/lib/go-modules'
|
|
import { pageMeta } from '@/lib/page-meta'
|
|
|
|
// The page is 'use client', which cannot export metadata — so its title and
|
|
// description live here, beside it. Both are the page's OWN words: the title is
|
|
// its <h1> and the description its lede, so a tab, a search result and the page
|
|
// itself say the same thing.
|
|
export const metadata: Metadata = pageMeta({
|
|
title: 'Hanzo Ingress',
|
|
description: 'High-performance HTTP/HTTPS reverse proxy purpose-built for Kubernetes.',
|
|
path: '/ingress',
|
|
other: goImport('ingress'),
|
|
})
|
|
|
|
export default function Layout({ children }: { children: React.ReactNode }) {
|
|
return children
|
|
}
|