SEO & social meta tags
This tutorial explains the meta tags in app/templates/source/blog/_head.html line-by-line and shows how to map each Mustache variable to the developer reference.
Base tags
Character set
<meta charset="utf-8">
This declares UTF-8 for consistent text rendering across browsers.
Viewport
<meta name="viewport" content="width=device-width, initial-scale=1">
This sets the layout viewport on mobile devices.
Robots
<meta name="robots" content="index, follow">
This allows search engines to index the page and follow links.
Site name
<meta property="og:site_name" content="{{title}}">
Uses your blog title to label the site in Open Graph previews. See blog.title.
Title
<title>{{> title}}</title>
The title partial renders the page title (often includes entry title + blog title). This partial is not documented in the reference (see Missing documentation).
Description
{{#entry}}
{{#summary}}<meta name="description" content="{{summary}}">{{/summary}}
{{^summary}}<meta name="description" content="{{title}}">{{/summary}}
{{/entry}}
{{^entry}}<meta name="description" content="{{> description}}">{{/entry}}
On entry pages, the description uses the entry summary if available, falling back to the entry title. See entry.summary and entry.title.
On non-entry pages, the description partial is used, which is also not currently documented (see Missing documentation).
RSS, favicon and CDN stylesheet
<link rel="alternate" type="application/rss+xml" title="RSS Feed for {{title}}" href="{{{blogURL}}}{{{feedURL}}}">
{{#avatar}}<link rel="icon" href="{{{avatar}}}" type="image/x-icon">{{/avatar}}
<link rel="preconnect" href="{{{cdn}}}" />
<link rel="stylesheet" href="{{#cdn}}/style.css{{/cdn}}">
blog.blogURL + blog.feedURL builds the RSS URL. blog.avatar provides the favicon. The CDN helper is documented at cdn and is used both as a literal and as a section helper.
Open Graph tags (entry pages)
Canonical URL & Open Graph URL
{{#entry}}
{{#absoluteURL}}
<link rel="canonical" href="{{{absoluteURL}}}">
<meta property="og:url" content="{{{absoluteURL}}}">
{{/absoluteURL}}
Use the fully qualified URL for canonical and og:url. See entry.absoluteURL.
Title
<meta property="og:title" content="{{title}}">
Uses the entry title. See entry.title.
Description
{{#summary}}<meta property="og:description" content="{{summary}}">{{/summary}}{{^summary}}<meta property="og:description" content="{{title}}">{{/summary}}
Prefers the entry summary, falling back to the entry title. See entry.summary and entry.title.
Preview image
{{#thumbnail.large}}
<meta property="og:image" content="{{{url}}}">
<meta property="og:image:width" content="{{width}}">
<meta property="og:image:height" content="{{height}}">
{{/thumbnail.large}}
{{^thumbnail.large}}
{{#avatar}}<meta property="og:image" content="{{{avatar}}}">{{/avatar}}
{{/thumbnail.large}}
The section uses entry.thumbnail and specifically the large variant for 1200px-wide previews. The url, width, and height properties are part of that thumbnail object but do not have dedicated anchors (see Missing documentation). The fallback uses blog.avatar.
Type
<meta property="og:type" content="article">
Entry pages declare themselves as articles.
Twitter Card tags (entry pages)
Card type
{{#thumbnail.large}}<meta name="twitter:card" content="summary_large_image">{{/thumbnail.large}}{{^thumbnail.large}}<meta name="twitter:card" content="summary">{{/thumbnail.large}}
Uses a large card when a large thumbnail exists, otherwise falls back to a summary card. See entry.thumbnail.
Title & description
<meta name="twitter:title" content="{{title}}">
{{#summary}}<meta name="twitter:description" content="{{summary}}">{{/summary}}{{^summary}}<meta name="twitter:description" content="{{title}}">{{/summary}}
Uses entry title and summary with the same fallback as Open Graph. See entry.title and entry.summary.
Image
{{#thumbnail.large}}<meta name="twitter:image" content="{{{url}}}">{{/thumbnail.large}}
{{^thumbnail.large}}
{{#avatar}}<meta name="twitter:image" content="{{{avatar}}}">{{/avatar}}
{{/thumbnail.large}}
Uses the large thumbnail if available, otherwise falls back to blog.avatar. See entry.thumbnail.
Article tags (entry pages)
Author
<meta property="article:author" content="{{{blogURL}}}">
Uses the site homepage URL as the author profile. See blog.blogURL.
Published and modified times
<meta property="article:published_time" content="{{#formatDate}}YYYY-MM-DDTHH:mm:ssZ{{/formatDate}}">
<meta property="article:modified_time" content="{{#formatUpdated}}YYYY-MM-DDTHH:mm:ssZ{{/formatUpdated}}">
Dates use the entry helpers entry.formatDate and entry.formatUpdated to emit ISO 8601 timestamps.
Tags
{{#tags}}
<meta property="article:tag" content="{{name}}">
{{/tags}}
Loops through entry tags. See entry.tags.
Non-entry pages (home, tags, archives, etc.)
{{^entry}}
<meta property="og:type" content="website">
{{#url}}
<link rel="canonical" href="{{{url}}}">
<meta property="og:url" content="{{{url}}}">
{{/url}}
<meta property="og:title" content="{{> title}}">
<meta property="og:description" content="{{> description}}">
{{#avatar}}<meta property="og:image" content="{{{avatar}}}">{{/avatar}}
{{/entry}}
Non-entry pages identify as website, use the title and description partials, and fall back to blog.avatar for og:image.
The url variable used for canonical and og:url does not have a documented reference anchor (see Missing documentation).
Entry vs. non-entry behavior
{{#entry}}switches context to the entry object (see entry), so{{title}}refers to the entry title within this block.{{^entry}}is the inverted section used for pages without an entry context (home, lists, etc.).- Entry pages use entry.absoluteURL for canonical and
og:url. Non-entry pages useurlif present. - Open Graph and Twitter descriptions prefer entry.summary but fall back to entry.title to avoid blank metadata.
Implementation advice
- Summary vs. title: Prefer entry.summary when it concisely represents the post; fall back to entry.title so previews are never empty.
- Image sizing: Use the large thumbnail for
og:imageandtwitter:image. It targets ~1200px wide (best for social previews) via entry.thumbnail. - When to use summary_large_image: Use
summary_large_imagewhen a large thumbnail exists; otherwisesummarykeeps Twitter cards compact. - Absolute URLs: Canonical and
og:urlmust be fully qualified (not relative) so crawlers and social scrapers resolve the canonical page correctly. Use entry.absoluteURL.
Audit & validation tools
- Google Lighthouse (SEO audit in DevTools)
- Google Search Console URL Inspection or Rich Results Test
- Facebook Sharing Debugger
- Twitter/X Card Validator
- LinkedIn Post Inspector
Missing documentation
The following template values in _head.html are used but do not have explicit reference anchors today. Consider documenting them in app/views/developers/reference.yml:
{{> title}}partial (proposed anchor:partials.title).{{> description}}partial (proposed anchor:partials.description).{{url}}on non-entry pages (proposed anchor:view.urlorpage.url).{{thumbnail.large.url}},{{thumbnail.large.width}},{{thumbnail.large.height}}(proposed anchors:entry.thumbnail.large.url,entry.thumbnail.large.width,entry.thumbnail.large.height).