# Blog Post Template & Creation Guide

This document serves as a comprehensive guide for creating and formatting blog posts for the Daniel Betthauser website.

## 1. Step-by-Step Instructions for Creating a New Blog Post

1. **Access the CMS**: Log in to the PocketBase admin dashboard or use the frontend Horizons Edit Content tab if available.
2. **Create New Record**: Navigate to the `posts` collection and click "New Record".
3. **Fill Required Fields**: Enter the Title, Slug, Content, Author, and Publish Date.
4. **Add Media**: Upload a Featured Image (recommended).
5. **Set Metadata**: Add an Excerpt, Category, Word Count, and Reading Time.
6. **Save & Publish**: Save the record. It will immediately appear on the Blog Listing page sorted by Publish Date.

## 2. Required Fields & Specifications

| Field Name | Type | Required | Description & Specifications |
| :--- | :--- | :--- | :--- |
| `title` | Text | **Yes** | The main headline of the post. Keep under 60 characters for SEO. |
| `slug` | Text | **Yes** | URL-friendly version of the title (e.g., `my-new-post`). Must be unique. |
| `content` | HTML/Rich Text | **Yes** | The main body of the post. Use standard HTML tags (`<h2>`, `<p>`, `<ul>`). |
| `author` | Text | **Yes** | Name of the author (e.g., "Daniel Betthauser"). |
| `publish_date` | Date | **Yes** | The date the post should be displayed as published. |
| `excerpt` | Text | No | A brief summary (150-160 characters) used in blog cards and SEO meta descriptions. |
| `featured_image` | File | No | Main image. Recommended size: 1600x900px (16:9 aspect ratio). Max 20MB. |
| `category` | Select | No | Choose from: Technology, Business, Personal, Insights, Case Studies, Other. |
| `reading_time` | Number | No | Estimated reading time in minutes (Word count / 200). |
| `author_bio` | Text | No | Short biography of the author displayed at the bottom of the post. |

## 3. Recommended Content Structure & Formatting

A well-structured blog post improves readability and SEO. Follow this pattern:

*   **H1 (Title)**: Handled automatically by the template. Do not include an `<h1>` in the content body.
*   **Introduction**: 1-2 paragraphs hooking the reader and explaining the value of the post.
*   **H2 (Main Sections)**: Use `<h2>` tags for major sections. The template automatically generates a Table of Contents from `<h2>` and `<h3>` tags.
*   **H3 (Sub-sections)**: Use `<h3>` tags to break down complex H2 sections.
*   **Paragraphs**: Keep paragraphs short (3-4 sentences maximum).
*   **Lists**: Use bulleted `<ul>` or numbered `<ol>` lists for easily scannable data.
*   **Conclusion**: Wrap up the main points and include a call to action (CTA).

## 4. Image Specifications & Optimization

*   **Dimensions**: 
    *   Featured Image: 1600x900 pixels (16:9 ratio).
    *   In-content Images: Max width 800px.
*   **File Formats**: WebP (preferred), JPEG, or PNG.
*   **File Size**: Keep images under 500KB to ensure fast page load times. Compress images before uploading.
*   **Alt Text**: Always include descriptive alt text for accessibility and SEO.

## 5. SEO Best Practices

*   **Slug Format**: Use lowercase letters, numbers, and hyphens only. Remove stop words (a, an, the). Example: `effective-leadership-strategies-2024`.
*   **Excerpt Optimization**: Write a compelling excerpt that includes the primary keyword. This acts as the meta description.
*   **Keyword Placement**: Include your main keyword in the Title, Slug, Excerpt, and naturally within the first 100 words of the content.
*   **Internal Linking**: Link to other relevant blog posts or pages on the site within your content.

## 6. Code Example: Structuring Content in PocketBase

When writing HTML content directly into the `content` field, use this structure: