TODO: Add hideHeader metadata field

By Jay Griffin  ·  January 23, 2026
docs
🏷️ Tags:todometadatauicontent-system

Add optional metadata field to hide ContentHeader component for non-standard pages like about-me

TODO: Add hideHeader metadata field

Problem

Some pages (like about-me) don't need the ContentHeader component because they're not standard content pages. Currently there's no way to remove it without creating custom routes.

Solution

Add hideHeader?: boolean to PostMeta interface and check it in the page rendering logic.

Implementation Steps

  1. Update PostMeta type (src/types/post.ts)

    .ts
    export interface PostMeta {
      // ... existing fields
      hideHeader?: boolean; // NEW
    }
    
  2. Update page rendering (wherever ContentHeader is rendered)

    • Check metadata.hideHeader before rendering ContentHeader
    • If true, skip ContentHeader and render content directly
  3. Use it in about-me.tsx

    .ts
    export const metadata: PostMeta = {
      title: 'About Me',
      slug: 'about-me',
      hideHeader: true, // <-- Add this
      // ... other fields
    }
    

Files to modify

Related