Configuration

The blog files are located in the content/ directory.

Authors are defined in JSON files located in the authors/ directory.
Categories are defined in JSON files located in the categories/ directory.
Posts are defined in JSON files located in the post/ directory.

Frontmatter Configuration

Each blog post must include a frontmatter section at the top of the MDX file with the following properties:

---
title: string # The title of the blog post
description: string # A brief description of the post content
publishDate: string # Publication date in "DD Month YYYY" format
live: boolean # Whether the post is published
author: string # Reference to author file (without .json extension)
image: string # Featured image URL
category: string[] # Array of category references (without .json extension)
---

Working with MDX

MDX supports regular markdown syntax plus React components. Launch Express uses the next-mdx-remote libary to process MDX files.

# Heading

Regular markdown content...

<CustomComponent prop="value">Component content</CustomComponent>

- List item 1
- List item 2

\`\`\`javascript
// Code block
console.log('Hello, world!');
\`\`\`

Media Integration

YouTube Integration

<YouTube id="your-video-id" />

Twitter Integration

<Twitter tweetId="tweet-id" theme="light | dark" />

Reddit Integration

<Reddit url="your-reddit-post-url" />

Loom Integration

<Loom
	id="your-loom-video-id"
	hideOwner="true | false"
	hideTitle="true | false"
	hideShare="true | false"
	hideEmbed="true | false"
/>

Images

You can include images in two ways:

  1. Local Images

    • Place images in the public/images/ directory
    • Reference images using the /images/ path
    ![Alt text](/images/image.jpg)
    
  2. External Images

    • Reference images using the full URL
    ![Alt text](https://example.com/image.jpg)
    

RSS Feed Support

The blog system includes an RSS feed that is automatically generated from the blog posts. The feed is available in the RSS 2.0, Atom, and JSON format.

SEO Considerations

  1. Metadata

    • Write descriptive titles
    • Include meaningful descriptions
    • Use appropriate categories
  2. URLs

    • Generated from file names
    • Keep them short and descriptive
    • Use hyphens for word separation
  3. Images

    • Include alt text
    • Optimize for web
    • Use descriptive file names