GoBlogger

Simple blogging. Single-binary deployment, easy for everyone.


Social cards and SEO basics

Canonical URLs, Open Graph/Twitter metadata, sitemap.xml, and robots.txt are now built in.

GoBlogger now includes a basic SEO and social preview package out of the box.

What's included

  • canonical URL in the page <head>
  • Open Graph tags (og:title, og:description, og:type, og:url)
  • Twitter card tags (twitter:card, twitter:title, twitter:description)
  • sitemap.xml
  • robots.txt with a sitemap pointer

Why the Site URL setting matters

Set your Public site URL in admin settings (or BLOG_SITE_URL) to ensure generated links use your real domain.

This value is used for:

  • canonical URLs
  • Open Graph/Twitter preview URLs
  • absolute URLs in sitemap.xml
  • sitemap reference in robots.txt

Example:

BLOG_SITE_URL=https://example.com

If no site URL is configured, GoBlogger falls back to the current request host.

Optional social image

You can set a default social image (BLOG_SOCIAL_IMAGE) as either:

  • an absolute URL, or
  • a root-relative path like /assets/social-card.png

When set, it is added as og:image and twitter:image.