This page holds every element a theme has to style, in the markup the site really produces. The words describe the block they sit in and are there only to fill its shape. This first paragraph follows the page title directly, so a theme that gives the opening paragraph a larger lead size can be judged here. It runs to several lines on a wide screen so that line length, line height and the space below the title can all be checked.

A second paragraph follows the first at body size. Body text sits in paragraphs like this one, and the gap between two paragraphs is the basic vertical rhythm of the page.

Contents

  1. Headings
  2. Paragraphs and inline text
  3. Links
  4. Lists
  5. Definition lists
  6. Quotations
  7. Code
  8. Tables
  9. Images and figures
  10. Footnotes
  11. Rules
  12. Disclosure
  13. Boxes
  14. Components
  15. Form
  16. Form messages
  17. Long content

Headings

The page title above is the only first-level heading on a page. Sections start at the second level, and the levels below follow in order.

A third-level heading

A short paragraph under a third-level heading.

A fourth-level heading

A short paragraph under a fourth-level heading.

A fifth-level heading

A short paragraph under a fifth-level heading.

A sixth-level heading

A short paragraph under a sixth-level heading.

Two headings in a row

The second heading follows the first with no text between

This shows the space between two headings of different levels when nothing separates them.

A heading long enough to wrap onto two or three lines on a phone, so that its line height and the balance of its lines can be checked

A paragraph after a long heading.

A heading with code in a heading and a link inside it

Code and links inside a heading take the heading's size; their own styles should still read clearly at that size.

Paragraphs and inline text

A paragraph can carry strong text, emphasised text and text that is both. It can hold inline code, a keyboard shortcut such as Ctrl + C, an abbreviation such as HTML, and highlighted text.

Chemical formulae use subscript, as in H2O, and footnote-style markers or powers use superscript, as in 103. An edit can show removed text beside inserted text, and text that is no longer accurate can be struck through.

Fine print uses small text, such as a date or a note on a figure. A short quotation runs inline with quotation marks the browser adds, and the title of a work is marked as a citation, as in The Title of a Book. A term being defined is marked defined term, a variable in a formula is x, and output from a program is sample output. A date can be marked up as .

A line can be broken without starting a new paragraph by ending it with two spaces.
This line follows such a break, in the same paragraph.

Figures and money should line up and read clearly: £1,250.00, 3,400 items, 12.5% and 0.75 kg. Accented and other letters should all be present in the chosen fonts: café, naïve, Zürich, Øresund, Łódź, São Paulo.

Characters that Markdown would otherwise read as formatting can be shown as written: *asterisks*, _underscores_ and `backticks`. Entities such as ©, & and ← → render as their symbols.

A plain link goes to another page on this site. A link can carry a title that shows on hover. A link to an external site leaves the site. An address written on its own becomes a link: https://example.com/.

A reference-style link is written with its address kept below the paragraph, as with this reference link.

A link that has been visited, a link back to the home page, shows the visited colour when the theme sets one.

A long address with no spaces must wrap inside the column instead of pushing the page sideways: https://example.com/a/very/long/path/that/keeps/going/without/any/spaces/so/that/it/has/to/break/somewhere/inside/the/column/index.html.

Links inside a list:

Lists

An unordered list:

  • A bulleted list item
  • A second item, long enough to wrap onto a second line on a narrow screen so that the hanging indent can be checked against the first line
  • A third item with strong text and code in a list

An ordered list:

  1. A numbered list item
  2. A second numbered item
  3. A third numbered item, long enough to wrap onto a second line on a narrow screen so that the number and the text stay aligned

An ordered list long enough to reach two-digit numbers:

  1. Item one
  2. Item two
  3. Item three
  4. Item four
  5. Item five
  6. Item six
  7. Item seven
  8. Item eight
  9. Item nine
  10. Item ten
  11. Item eleven

A nested list, mixing both kinds, three levels deep:

  1. A first-level numbered item
    • A second-level bulleted item
    • Another second-level item
      1. A third-level numbered item
      2. Another third-level item
        • A fourth level, the deepest real content reaches
  2. Back at the first level
    1. A second-level numbered item
      • A third-level bulleted item

A bulleted list nested three deep:

  • A first-level bulleted item
    • A second-level bulleted item
      • A third-level bulleted item

A loose list, where blank lines between items make each item a paragraph:

  • The first item of a loose list. Each item is wrapped in a paragraph, so the space between items is larger.

  • The second item of a loose list.

    A second paragraph inside the same item, indented to belong to it.

  • The third item of a loose list.

A list can start at a number other than one when it is written in HTML:

  1. An item numbered seven
  2. An item numbered eight

A paragraph straight after a list closes it, and the space above this line is the space after a list.

Definition lists

Term
The definition of the term, set below or beside it.
A longer term that runs on
A definition long enough to wrap onto a second line on a narrow screen, so that its indent can be checked.
First of two terms
Second of two terms
One definition shared by two terms.
A term with two definitions
The first definition.
The second definition.

Quotations

A simple quotation:

A block quotation, set apart from the body text. It runs to two lines on a narrow screen.

A quotation of more than one paragraph:

The first paragraph of a longer quotation.

The second paragraph of the same quotation, with strong text and a link inside it.

A quotation inside a quotation:

The outer quotation.

The inner quotation, nested one level deeper.

The outer quotation continues after the inner one.

A quotation with its source, marked as a citation:

A quotation followed by the name of the person or work it comes from.

The Name of the Source

A quotation holding a list and a heading:

A heading inside a quotation

  • A list item inside a quotation
  • A second list item

A paragraph between the two lists inside the quotation.

  1. A numbered item inside a quotation
  2. A second numbered item

A quotation with its source in a caption, using a figure:

A quotation inside a figure, with its source given in the caption below.

The Name of the Source, The Title of the Work

Code

Inline code sits within a sentence, as in lazysite.conf or --domain example.com, and a long inline span such as a.very.long.inline.code.span.with.no.spaces.in.it.that.has.to.wrap.somewhere must still wrap.

A code block with a language:

lazysite check --domain example.com
lazysite cache clear
title: A page title
subtitle: A line under the title
tags:
  - first
  - second
{
  "name": "example",
  "version": "1.0.0",
  "enabled": true,
  "count": 3
}
<section>
  <h2>A heading</h2>
  <p>A paragraph with <a href="https://lazysite.io/">a link</a>.</p>
</section>
body {
  font-family: var(--theme-fonts-body);
  color: var(--theme-colours-text);
}
function greet(name) {
  return 'Hello, ' + name + '.';
}
## A heading

Some text with **strong** words.

::: note
A box written in Markdown.
:::

A code block with no language:

Plain preformatted text.
    Indented by four spaces.
        And by eight.

A code block written by indenting each line by four spaces:

An indented code block.
Its lines keep their spacing.

A code block with long lines, which scrolls sideways or wraps, as the theme decides:

sub service_enabled {
    my ( $docroot, $key ) = @_;
    return 0 unless defined $docroot && length $docroot && defined $key && length $key;   # a long line, to show how code behaves on a narrow screen
    return 1;
}

Code inside a list item:

  1. The first step, which runs a command:

    lazysite cache clear --domain example.com
    
  2. The second step, with code in a step in its text.

Code inside a quotation:

A code block inside a quotation.

A long code block, to judge how a theme handles code that runs well past one screen:

#!/usr/bin/perl
use strict;
use warnings;

# A long listing. The content does not matter; its length does.
my %totals;
my @rows = (
    [ 'north', 120 ],
    [ 'south', 340 ],
    [ 'east',  75 ],
    [ 'west',  210 ],
);

for my $row (@rows) {
    my ( $region, $value ) = @{$row};
    $totals{$region} += $value;
}

sub report {
    my ($t) = @_;
    my @lines;
    for my $region ( sort keys %{$t} ) {
        push @lines, sprintf '%-8s %6d', $region, $t->{$region};
    }
    return join "\n", @lines;
}

sub grand_total {
    my ($t) = @_;
    my $sum = 0;
    $sum += $_ for values %{$t};
    return $sum;
}

sub largest {
    my ($t) = @_;
    my ($top) = sort { $t->{$b} <=> $t->{$a} } keys %{$t};
    return $top;
}

print report( \%totals ), "\n";
print 'Total: ', grand_total( \%totals ), "\n";
print 'Largest: ', largest( \%totals ), "\n";

# The listing continues so that the block is clearly longer than a screen.
for my $n ( 1 .. 10 ) {
    printf "%2d squared is %3d\n", $n, $n * $n;
}

for my $n ( 1 .. 10 ) {
    printf "%2d cubed is %4d\n", $n, $n * $n * $n;
}

exit 0;

Tables

A simple table:

Name Type Default
site_name text none
ttl number 3600
app_name text none

A table with a caption, and columns aligned left, centre and right:

A table caption, describing the table
Left aligned Centred Right aligned
Text Middle 1
Longer text in the first column Middle 22
Text Middle 333

A table of figures, with the numbers right aligned so their digits line up:

Region Orders Value Change
North 1,204 £18,450.00 4.2%
South 987 £12,300.50 -1.8%
East 15 £240.00 0.0%
West 12,630 £204,118.75 12.6%

A table with inline code, links, emphasis and empty cells:

Setting Where it is set Notes
layout Configuration Required
theme Optional, left empty in the middle column
Front matter A row whose first cell is empty

A table whose first column is a row header (the first heading cell is left empty), with a cell spanning two columns:

Morning Afternoon
Monday Open Closed
Tuesday Open all day
Wednesday Closed Open

A table in two groups of rows, separated by a blank line:

Group Item Count
First One 1
First Two 2
Second Three 3
Second Four 4

A wide table, which must stay usable on a phone:

Feature Option A Option B Option C Option D Notes
Content format Plain text files Records in a database Pages in a visual editor Files in a repository Long cells wrap, so column widths and line height are tested on a phone
Build step None None None One before every change
Hosting Any web server A managed service A managed service A static host A cell with a long word: supercalifragilisticexpialidocious

A table written in HTML, which can carry a footer row:

A table with a footer row
ItemQuantityPrice
First item2£10.00
Second item1£4.50
Total3£14.50

Images and figures

An image with alternative text, wider than the column, which must scale down to fit:

A wide placeholder picture of hills under a sun

An image with a title, which shows on hover:

A square placeholder picture

An image given a width and height:

A small square placeholder picture

An image used as a link:

A square placeholder picture that links to the home page

A tall image, to check that height is limited sensibly on a wide screen:

A tall placeholder picture of a person

An image inside a figure, with a caption:

A placeholder picture of hills inside a figure
A figure caption, describing the picture above it. It can run to two lines on a narrow screen.

An image placed inside a paragraph of text: A small inline square sits on the line with the words around it.

Footnotes

A sentence can carry a footnote marker,1 which links to the note at the foot of the page. A second marker2 links to a second note. The notes themselves are collected in a numbered list at the very end of the page, after a rule.

Rules

A horizontal rule separates two parts of a page.


The text after the rule.

Disclosure

A closed disclosure, opened by its summary line The content hidden until the summary is chosen.
A disclosure that starts open The content shown from the start. It can be closed by choosing the summary line.

Boxes

A box is written as a fenced block with a name, and becomes a block with that name as its class. The names below are the ones the shipped layouts and the documentation use. A site can use any other name, and the theme styles whichever ones its pages use.

A wide box, which can be wider than the text column.

A text box, for a passage set apart from the body text.

A margin box, for a short aside that sits beside the text on a wide screen.

An example box, for a worked example.

A note box, for information the reader should notice.

A callout box, the name the authoring guide uses for its example.

A warning box, for something the reader should take care over.

A box holding more than one paragraph and other elements:

A heading inside a box

The first paragraph inside the box, with strong text and a link.

  • A list item inside the box
  • A second list item
lazysite check --domain example.org

The last paragraph inside the box.

Components

A QR code, drawn by the browser from the value it is given. It needs scripts, so in a page without them only its empty frame shows:

An embedded video or post from another site, which the site fetches once and stores with the page, is the provider's own frame inside this block:

Form

A form, with every kind of field the form syntax can produce. A field marked with an asterisk is required.

Form messages

After a form is sent without scripts, the page shows a message above the form. A successful send shows this:

Thank you - your message has been sent.

A refused send shows this, naming the problem:

With scripts, a successful send replaces the form with this message:

Thank you - message sent.

Long content

A paragraph with a very long word that has no natural break, to check that it wraps inside the column on a phone: Pneumonoultramicroscopicsilicovolcanoconiosisandothersimilarlylongwordsthatneverend.

A last paragraph closes the page, so the space between the final element and the footer can be judged.


  1. The first footnote, a single short sentence. ↩

  2. The second footnote, long enough to wrap onto a second line on a narrow screen, with code in a note and a link inside it. ↩