Skip to content

Every page of this example site is built with Docsheaf’s own blocks.Start for free

Reusable and adaptive content

Snippets kept once and shown on many pages, and content that adapts to the reader.

Snippet#

The box below is a snippet, also shown on the Quickstart. Edit it once and every page that embeds it changes.

Questions? Write to support@docsheaf.com. This box is a snippet: it is kept once per site and shown wherever a page embeds it.

Adaptive content#

A conditional block shows its content only to readers whose claims match its expression. Sites with adaptive content read claims from a cookie, a signed token or the address — try adding ?visitor.plan=pro to this page’s URL.

Readers who aren’t on the Pro plan see this hint instead.

Was this helpful?

Last updated

View as Markdown