Writing guide: OG images, titles, descriptions, and dates

This site auto-generates all Open Graph and Twitter metadata from your post’s front matter and/or first content image. Follow these simple rules to guarantee great share cards and accurate dates in Google.

Minimum front matter for a post

---
title: "Your post title"
layout: post
# Primary share image (preferred)
image: /assets/images/your-image-1200x630.jpg
# Fallback if you keep using the older field name
# image_url: https://.../your-image-1200x630.jpg
# Optional: custom description (otherwise the excerpt is used)
description: A crisp 1–2 sentence summary (max ~150–160 chars).
# Publish date (required); format: YYYY-MM-DD HH:MM
date: 2025-06-22 00:00
# Update this when you substantially revise a post (optional but recommended)
last_modified_at: 2025-06-25 13:30
---

Notes:

Image recommendations

Titles and descriptions

Dates and Google freshness

Example update:

last_modified_at: 2025-07-01 09:10

Validation checklist (2 minutes)

  1. Open the built page, View Source.
  2. Confirm these meta tags exist and are correct:
    • og:image (absolute URL) and twitter:image.
    • twitter:card = summary_large_image.
    • article:published_time and article:modified_time (for posts).
  3. Test the URL in:
    • Twitter Card Validator (large image)
    • Facebook Sharing Debugger / Meta Open Graph debugger

Troubleshooting

That’s it. New posts inherit all logic; set image, description (optional), and last_modified_at when you update content. No other steps required.

rss facebook twitter github gitlab youtube mail spotify lastfm instagram linkedin google google-plus pinterest medium vimeo stackoverflow reddit quora quora