Skip to main content

Your First Page

Micropage pages are written using a simple markup format.

Example page:

[site]
title: My Website
description: A simple site built with Micropage

[Home -> /]

/// hero
h1: Welcome
p: This is my first Micropage site

Structure

A typical file contains:

  • [site] block for site configuration
  • navigation entries
  • page sections

Sections

Sections define layout blocks.

Example:

/// section
h2: Features
p: Fast deployment
p: Simple markup

Images

Use img: to add an image. Provide a keyword, a filename, or a URL after <-:

/// section
img: <- coffee
  • keyword — searches Unsplash for a matching photo
  • filename — looks up a file uploaded to the project (e.g. img: <- hero.png)
  • URL — downloads and stores the file (e.g. img: <- https://example.com/photo.jpg)

See Images for full details.

Publishing

Web app: click Publish in the editor toolbar.

CLI:

micropage publish