--- import { makeOgImageUrl, type OgImageAllTemplatesWithProps } from '../components/OgImage' import { KYCNOTME_SCHEMA_MINI } from '../lib/schema' import BaseLayout from './BaseLayout.astro' import type { AstroChildren } from '../lib/astro' import type { MarkdownLayoutProps } from 'astro' import type { ComponentProps } from 'astro/types' import type { Article, WithContext } from 'schema-dts' type Props = ComponentProps & MarkdownLayoutProps<{ children: AstroChildren title: string author: string pubDate: string description: string icon?: string }> const { frontmatter, schemas, ...baseLayoutProps } = Astro.props const publishDate = frontmatter.pubDate ? new Date(frontmatter.pubDate) : null const ogImageTemplateData = { template: 'generic', title: frontmatter.title, description: frontmatter.description, icon: frontmatter.icon, } satisfies OgImageAllTemplatesWithProps const weAreAuthor = frontmatter.author.toLowerCase().trim() === 'kycnot.me' --- , ...(schemas ?? []), ]} >

{frontmatter.title}

{frontmatter.author && `by ${frontmatter.author}`} {frontmatter.pubDate && ` | ${new Date(frontmatter.pubDate).toLocaleDateString()}`}