Add Fields to PageMeta
2 minutes read
The PageMeta interface in app.d.ts defines the
metadata structure for all pages. It currently supports title, date,
authors, tags, sort order, cover image, and todo state. This task is about
extending it with additional fields to support richer page metadata.
Current Fields
title— page title (required)menuTitle— alternative title for navigation menusdate— publication date in DD-MM-YYYY formatupdated— last updated dateauthors— author tags or full Author objectstags— content tagssortOrder— numeric sort order for listingscover— cover imagestate— todo state (done, new, in_progress)
Candidate Fields
description— SEO meta description, currently only passed to Publicationdraft— boolean to mark unpublished pagesfeatured— boolean or number for featured/pinned contentreadingTime— estimated reading time overridecanonical— canonical URL for cross-posted contentnoindex— exclude page from search engineslang— page language if different from site defaultcategory— broader content category beyond tags
Tasks
- Decide which fields to add to
PageMeta - Update the interface in
app.d.ts - Update components that consume
PageMetato use new fields - Update existing pages if needed
- Verify type checking passes with
pnpm check
Read next