Skip to main content

SEO

Micropage emits a full set of SEO and social-sharing tags on every published page — meta description, Open Graph, Twitter Card, canonical, robots, theme-color, and JSON-LD structured data describing your site and who runs it — and serves sitemap.xml and robots.txt automatically. You control site-wide defaults in the [site] block and override them per page via a meta: subblock inside any [page].

Site-level SEO​

Add these keys directly inside [site]:

KeyPurpose
titleSite title — used as <title> fallback and og:site_name.
descriptionDefault meta description, also used for og:description and twitter:description.
keywordsComma-separated meta keywords.
og_imageDefault Open Graph / Twitter Card image (1200×630 recommended). Falls back to logo if not set.
og_typeOne of: website, article, product, profile, book, video.movie, video.episode, music.song, music.album. Defaults to website.
theme_colorBrowser-chrome color on mobile (CSS hex / rgb() / hsl()).
langDefault language code for <html lang="…"> on pages that don't set their own. If unset, pages use en.
noindextrue to mark the entire site noindex, nofollow.
typeWho the site represents: organization (the default) or person. Used for the JSON-LD identity.
profilesComma-separated URLs of your accounts on other sites (GitHub, LinkedIn, X, …); a URL can't contain a comma. Emitted as schema.org sameAs. An x.com or twitter.com profile link also sets twitter:site.
emailContact email for the site's identity. A leading mailto: is stripped.
alternate_nameAnother name you're known by (a short brand name, or a full legal name for a person).
foundedFounding date, YYYY, YYYY-MM or YYYY-MM-DD. Organization only; ignored with type: person.
legal_nameRegistered legal name. Organization only; ignored with type: person.

Example:

[site]
title: Acme Widgets
description: Beautifully simple widgets for makers.
keywords: widgets, gadgets, makers, hardware
logo: <- logo.png
og_image: <- /assets/social-card.png
og_type: website
theme_color: #5c6fff
lang: en
type: organization
profiles: https://x.com/acmewidgets, https://github.com/acmewidgets
email: [email protected]
founded: 2021
legal_name: Acme Widgets Ltd

Invalid values (a profile that isn't an http(s) URL, a malformed email or date) are dropped silently.

twitter_handle: is no longer supported and is ignored. Put your X profile URL in profiles: instead, for example profiles: https://x.com/acmewidgets.

Page-level SEO​

Inside any [page -> /url], declare an indented meta: block to override site defaults for that page. The meta: block must appear before any /// section separator.

KeyPurpose
descriptionPer-page meta description (overrides site default).
keywordsPer-page keywords.
canonicalAbsolute URL — must start with http:// or https://. Relative paths are silently dropped. Use when content is syndicated from another site.
og_imagePer-page social card.
og_typePer-page Open Graph type (same whitelist as site).
noindextrue / false — overrides the site-wide setting for this page.
langThis page's language code (ro, pt-BR), emitted as <html lang="…">. Overrides the site lang.
translationen -> /about — links a translated version of this page. Repeatable, one per language. See Multilingual Sites.

Example:

[page -> /blog/launch]
meta:
description: We're launching Acme Widgets v2 — here's what changed.
keywords: acme widgets, launch, v2, release notes
og_image: <- /assets/launch-card.png
og_type: article
canonical: https://acmewidgets.com/blog/launch

# We're live

What gets emitted​

Per published page, Micropage renders:

  • <title> and <html lang="…">
  • <meta name="description"> and <meta name="keywords"> (page value wins over site)
  • <link rel="canonical"> (page canonical if set, otherwise the page's own URL)
  • <meta name="robots" content="noindex, nofollow"> — only when noindex: true at site or page level
  • <meta name="theme-color">
  • Open Graph: og:title, og:description, og:url, og:type, og:site_name, og:image (plus og:image:width / og:image:height when known)
  • Twitter Card: twitter:card is summary_large_image if an og_image resolves, otherwise summary; plus twitter:title, twitter:description, twitter:image, and twitter:site (from the X profile link in profiles)
  • One JSON-LD block with a connected graph: the site identity, a WebSite node, and a BlogPosting on post pages. See Structured data (JSON-LD)
  • When the page has translations: <link rel="alternate" hreflang="…"> for its language versions, plus hreflang="x-default" pointing at the version in the site's default language

The og_image falls back through page.meta.og_image → site.og_image → site.logo, so even pages that don't configure SEO get a sensible social card if your site has a logo.

Best practices​

  • Keep description between 50–160 characters — search engines truncate longer ones.
  • Use a 1200×630 PNG or JPG for og_image. Anything smaller may be downscaled by social platforms.
  • Set page-level canonical when reposting content from another site so you don't compete with the original.
  • Use noindex: true for staging, draft, or utility pages (thank-you confirmations, internal links).
  • Stick to the og_type whitelist — unrecognized values are ignored and the renderer falls back to website.

Structured data (JSON-LD)​

Every page gets one <script type="application/ld+json"> holding a schema.org @graph built from [site]. The nodes reference each other by @id, so search engines see one site run by one organization or person:

  • Identity: Organization (@id {site URL}/#organization) or, with type: person, Person (@id {site URL}/#person). Built from title (as name), the site URL, description, logo, email, profiles (as sameAs), alternate_name, and for an organization founded and legal_name. Left out when the site has no title.
  • WebSite (@id {site URL}/#website), with the identity as publisher.
  • BlogPosting on post pages, with the identity as author and publisher.

The identity is repeated on every page under the same @id; it is one entity, not several. The {site URL} is your custom domain, or your *.micropage.live host if you don't have one.

An organization's logo (a person's image) comes from the [site] logo. An SVG logo uploaded to Micropage is converted to PNG for this, because search engines don't accept SVG logos. With type: person the same logo still shows in the site header, so a headshot used as the person's image also appears in the nav.

For https://acmewidgets.com with the example [site] block above, a page's graph looks like:

{
"@context": "https://schema.org",
"@graph": [
{
"@type": "Organization",
"@id": "https://acmewidgets.com/#organization",
"name": "Acme Widgets",
"url": "https://acmewidgets.com",
"description": "Beautifully simple widgets for makers.",
"logo": "https://…/logo.png",
"email": "[email protected]",
"sameAs": ["https://x.com/acmewidgets", "https://github.com/acmewidgets"],
"foundingDate": "2021",
"legalName": "Acme Widgets Ltd"
},
{
"@type": "WebSite",
"@id": "https://acmewidgets.com/#website",
"name": "Acme Widgets",
"url": "https://acmewidgets.com",
"description": "Beautifully simple widgets for makers.",
"publisher": { "@id": "https://acmewidgets.com/#organization" }
}
]
}

When the logo's dimensions are known, logo is an ImageObject with url, width and height instead of a plain URL.

Writing your own JSON-LD​

If a page contains hand-written JSON-LD (a <script type="application/ld+json"> in a /// html block or an inline html element), Micropage outputs no generated JSON-LD on that page. You write all of it, including the identity and WebSite nodes if you want them. Hand-written JSON-LD inside [footer] counts for every page, since the footer renders on every page.

When you write your own, reuse the platform's @id for the identity so every page describes the same entity:

/// html
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@graph": [
{
"@type": "Organization",
"@id": "https://acmewidgets.com/#organization",
"name": "Acme Widgets",
"url": "https://acmewidgets.com"
},
{
"@type": "Product",
"name": "Widget Pro",
"brand": { "@id": "https://acmewidgets.com/#organization" }
}
]
}
</script>

Post pages and the posts index keep the generated graph, unless your footer contains JSON-LD: the footer renders on those pages too, so they then get no generated JSON-LD either, including the BlogPosting data. On a site with posts, put hand-written JSON-LD in page /// html blocks, not in the footer.

sitemap.xml​

Every published site exposes /sitemap.xml automatically. The site URL is set from your project's custom domain (or the default *.micropage.live host) — there's nothing to configure.

Contents:

  • One <url> entry per page, with <loc> (absolute URL) and <lastmod>. A page's <lastmod> is when its own content (its sections and meta:) last changed; publishing again with the page unchanged, or editing only the nav, footer, or [site] block, does not move it.
  • If you publish posts, the content index and each Listed post get an entry too. A post's <lastmod> is its last content update, or its published date if it hasn't been edited since; the index uses its newest post's.
  • <lastmod> is left out when no date is known, rather than filled with the deploy time.
  • Pages with translations list their language versions as hreflang alternates, including x-default.
  • Pages with noindex: true in their meta: block are excluded.
  • Pages whose canonical points to a different hostname are excluded (they belong to that other site).
  • If the site has noindex: true, the sitemap is emitted empty (<urlset></urlset>).

robots.txt​

Every published site exposes /robots.txt automatically:

  • Default: User-agent: * with Allow: / and a Sitemap: line pointing at /sitemap.xml.
  • When [site] noindex: true is set: User-agent: * with Disallow: / — the whole site becomes uncrawlable.

There's no way to add custom Disallow rules from markup; use per-page noindex to hide individual pages from indexing.

What Micropage does NOT auto-generate​

  • JSON-LD beyond the site identity, WebSite and BlogPosting. Schemas like FAQPage, Product or SoftwareApplication are not generated. Write them in a /// html block (see Writing your own JSON-LD).
  • No custom robots.txt rules beyond the global noindex flag.

Complete example​

[site]
title: Acme Widgets
description: Beautifully simple widgets for makers.
keywords: widgets, gadgets, makers
og_image: <- /assets/social-card.png
og_type: website
theme_color: #5c6fff
lang: en
profiles: https://x.com/acmewidgets
email: [email protected]

[nav]
- Home -> /
- Blog -> /blog/launch

[page -> /]
# Welcome to Acme

We make widgets that just work.

[page -> /blog/launch]
meta:
description: We're launching Acme Widgets v2 — here's what changed.
og_image: <- /assets/launch-card.png
og_type: article

# Launching v2

Today we shipped a complete redesign...