SEO Guidelines for Blog Posts

This document outlines SEO best practices for creating new blog posts on rshankar.com.

Required Front Matter for Every Post

Every blog post should include these essential fields in the front matter:

---
title: "Your SEO-Optimized Title (50-60 characters)"
date: "YYYY-MM-DD"
description: "Compelling meta description that includes primary keyword (120-155 characters)"
categories:
  - "primary-category"
  - "secondary-category"
tags:
  - "Relevant Tag 1"
  - "Relevant Tag 2"
image: "/assets/images/post-slug/featured-image.png"
permalink: "/post-slug/"
excerpt_separator: <!--more-->
---

Essential SEO Elements

1. Title Optimization

Good Examples:

✅ "Building a SwiftUI Stopwatch App with Lap Timing"
✅ "Understanding iOS Delegate Pattern: A Beginner's Guide"
✅ "How to Fix CFBundleVersion Error in Xcode"

Bad Examples:

❌ "Stopwatch" (too short, not descriptive)
❌ "You Won't Believe How Easy This iOS Pattern Is!!!" (clickbait)
❌ "The Ultimate Complete Comprehensive Guide to Everything About iOS Development" (too long)

2. Meta Descriptions

Template:

Learn [topic] with [approach]. [Benefit statement]. [Optional CTA].

Good Examples:

✅ "Learn how to build a SwiftUI stopwatch with lap timing. Complete tutorial with code examples and best practices."
✅ "Master the iOS delegate pattern with simple explanations and real-world examples. Perfect for beginners."

Bad Examples:

❌ "In this post I will talk about..." (boring, no value)
❌ "A blog post about SwiftUI" (too vague)
❌ [leaving it blank - lets search engines guess]

Every post should have a featured image for social sharing:

Specifications:

Image Content Guidelines:

Front Matter:

image: "/assets/images/building-twaist/featured.png"
og_image: "/assets/images/building-twaist/featured.png"  # Optional, uses 'image' if not set

4. Image Alt Text

All images in content must have descriptive alt text:

# Good - descriptive and keyword-rich
![TwAIst welcome screen showing multi-step composer interface](/assets/images/twaist/welcome.png)

# Bad - generic or missing
![Screenshot](/assets/images/twaist/welcome.png)
![](/assets/images/twaist/welcome.png)

Use descriptive, keyword-rich URLs:

# Good
permalink: "/building-swiftui-stopwatch-app-lap-timing/"
permalink: "/understanding-ios-delegate-pattern/"

# Bad
permalink: "/post-123/"  # not descriptive
permalink: "/2024/01/11/post/"  # date-based (unless intentional)

Current standard: /:title/

6. Categories & Tags

Categories (2-3 max):

Tags (4-8 recommended):

categories:
  - "swiftui"
  - "tutorial"
tags:
  - "SwiftUI"
  - "Stopwatch"
  - "Timer"
  - "iOS Development"
  - "Xcode"

Add a keywords field for additional SEO context:

keywords: "SwiftUI stopwatch, iOS timer app, lap timing tutorial, SwiftUI tutorial, iOS development"

8. Excerpt Separator

Always include an excerpt separator to control preview text:

excerpt_separator: <!--more-->

Place <!--more--> after 1-2 compelling paragraphs (150-200 words).

Enhanced Front Matter Template

For maximum SEO impact, use this comprehensive template:

---
title: "Your SEO-Optimized Title (50-60 chars)"
date: "2025-11-01"
permalink: "/your-post-slug/"
description: "Compelling meta description with primary keyword (120-155 characters)"
categories:
  - "primary-category"
  - "secondary-category"
tags:
  - "Relevant Tag 1"
  - "Relevant Tag 2"
  - "Relevant Tag 3"
keywords: "primary keyword, secondary keyword, related terms"
image: "/assets/images/post-slug/featured.png"
og_title: "Title optimized for social sharing"
og_description: "Description optimized for social sharing (may differ from meta description)"
og_image: "/assets/images/post-slug/social.png"
og_type: "article"
twitter_card: "summary_large_image"
twitter_title: "Twitter-specific title (if different)"
twitter_description: "Twitter-specific description"
excerpt_separator: <!--more-->
toc: true  # Enable table of contents for long posts
toc_sticky: true
last_modified_at: "2025-11-01"  # Update when making significant changes
---

Content Writing Guidelines

Heading Structure

Use proper heading hierarchy for SEO and accessibility:

# H1 - Post Title (automatically generated from front matter)

## H2 - Main Sections
Use H2 for primary sections. Include keywords naturally.

### H3 - Subsections
Use H3 for subsections within H2 blocks.

#### H4 - Detailed Points
Use sparingly for very detailed breakdowns.

Best Practices:

Internal Linking

Link to related posts within your content:

Learn more about [SwiftUI basics](/swiftui-basics/)
or check out our [complete SwiftUI guide](/swiftui-guide/).

Target: 2-5 internal links per post to related content

External Linking

Link to authoritative sources:

Always use descriptive anchor text (not “click here”).

Content Length

Quality over quantity - every word should add value.

Code Blocks

Use syntax highlighting for better readability:

\`\`\`swift
// Your Swift code here
struct ContentView: View {
    var body: some View {
        Text("Hello, World!")
    }
}
\`\`\`

First Paragraph

Your opening paragraph is critical for SEO:

Example:

Learn how to build a sophisticated stopwatch app using SwiftUI with lap timing
functionality. This step-by-step tutorial covers state management, timer
implementation, and creating an intuitive user interface.<!--more-->

Image Optimization Checklist

Pre-Publishing SEO Checklist

Before publishing any post, verify:

Post-Publishing Tasks

After publishing:

  1. Test the post:
    • Verify URL loads correctly
    • Check mobile responsiveness
    • Test all internal/external links
    • Verify images load properly
  2. Social Media:
    • Share on Twitter with relevant hashtags
    • Share on LinkedIn
    • Add to relevant communities (if appropriate)
  3. Monitor:
    • Check Google Search Console for indexing
    • Monitor analytics for traffic
    • Respond to comments/engagement

Tools & Resources

SEO Tools

Image Tools

Keyword Research

Common Mistakes to Avoid

  1. Missing meta descriptions - Always write your own
  2. Duplicate content - Each post should be unique
  3. Thin content - Minimum 300 words, prefer 1000+
  4. No internal links - Link to related posts
  5. Generic images - Create custom featured images
  6. Missing alt text - Accessibility and SEO issue
  7. Keyword stuffing - Use keywords naturally
  8. Broken links - Test all links before publishing
  9. No mobile testing - Always check mobile view
  10. Ignoring analytics - Review what works

Questions?

For questions about these guidelines or SEO best practices, refer to:


Last Updated: 2025-11-01 Version: 1.0