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]:
| Key | Purpose |
|---|---|
title | Site title — used as <title> fallback and og:site_name. |
description | Default meta description, also used for og:description and twitter:description. |
keywords | Comma-separated meta keywords. |
og_image | Default Open Graph / Twitter Card image (1200×630 recommended). Falls back to logo if not set. |
og_type | One of: website, article, product, profile, book, video.movie, video.episode, music.song, music.album. Defaults to website. |
theme_color | Browser-chrome color on mobile (CSS hex / rgb() / hsl()). |
lang | Default language code for <html lang="…"> on pages that don't set their own. If unset, pages use en. |
noindex | true to mark the entire site noindex, nofollow. |
type | Who the site represents: organization (the default) or person. Used for the JSON-LD identity. |
profiles | Comma-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. |
email | Contact email for the site's identity. A leading mailto: is stripped. |
alternate_name | Another name you're known by (a short brand name, or a full legal name for a person). |
founded | Founding date, YYYY, YYYY-MM or YYYY-MM-DD. Organization only; ignored with type: person. |
legal_name | Registered 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.
| Key | Purpose |
|---|---|
description | Per-page meta description (overrides site default). |
keywords | Per-page keywords. |
canonical | Absolute URL — must start with http:// or https://. Relative paths are silently dropped. Use when content is syndicated from another site. |
og_image | Per-page social card. |
og_type | Per-page Open Graph type (same whitelist as site). |
noindex | true / false — overrides the site-wide setting for this page. |
lang | This page's language code (ro, pt-BR), emitted as <html lang="…">. Overrides the site lang. |
translation | en -> /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">(pagecanonicalif set, otherwise the page's own URL)<meta name="robots" content="noindex, nofollow">— only whennoindex: trueat site or page level<meta name="theme-color">- Open Graph:
og:title,og:description,og:url,og:type,og:site_name,og:image(plusog:image:width/og:image:heightwhen known) - Twitter Card:
twitter:cardissummary_large_imageif anog_imageresolves, otherwisesummary; plustwitter:title,twitter:description,twitter:image, andtwitter:site(from the X profile link inprofiles) - One JSON-LD block with a connected graph: the site identity, a
WebSitenode, and aBlogPostingon post pages. See Structured data (JSON-LD) - When the page has translations:
<link rel="alternate" hreflang="…">for its language versions, plushreflang="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
descriptionbetween 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
canonicalwhen reposting content from another site so you don't compete with the original. - Use
noindex: truefor staging, draft, or utility pages (thank-you confirmations, internal links). - Stick to the
og_typewhitelist — unrecognized values are ignored and the renderer falls back towebsite.
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, withtype: person,Person(@id{site URL}/#person). Built fromtitle(asname), the site URL,description,logo,email,profiles(assameAs),alternate_name, and for an organizationfoundedandlegal_name. Left out when the site has notitle. WebSite(@id{site URL}/#website), with the identity aspublisher.BlogPostingon post pages, with the identity asauthorandpublisher.
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 andmeta:) 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
hreflangalternates, includingx-default. - Pages with
noindex: truein theirmeta:block are excluded. - Pages whose
canonicalpoints 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: *withAllow: /and aSitemap:line pointing at/sitemap.xml. - When
[site] noindex: trueis set:User-agent: *withDisallow: /— 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,
WebSiteandBlogPosting. Schemas likeFAQPage,ProductorSoftwareApplicationare not generated. Write them in a/// htmlblock (see Writing your own JSON-LD). - No custom
robots.txtrules 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...