Vanilla Breeze v0.7.4

Vanilla Breeze v0.7.4 released

0.7.4 gives the Ambient pack weather. A page names one feed URL on its own site, and the pack sets data-weather from it, uses its sunrise and sunset for dawn and dusk, and never shows a stale observation. Helpers for producing the feed from Open-Meteo are included. Ambient p…

Read the release notes

Content Management Overview

What Vanilla Breeze gives a content-heavy site: metadata that components read, aids for long articles, ways to find pages, and a record of who made the content and how it changed.

The approach

A page on a content site carries facts about itself: who wrote it, when it changed, what it is about, what it replaced. Vanilla Breeze asks you to state those facts once, in standard HTML, and gives you components that read them.

The facts live in three places. <meta> and <link> tags in the <head> describe the page. Elements and attributes in the body (<ins>, <del>, <dfn>, rel, headings with ids) describe its parts. A JSON file that your build writes describes the whole site. Nothing here needs a particular content management system or site generator. Any tool that can write those tags and that file will do.

From task to component

Start from what you want a reader to be able to do.

Task Pieces Guide
Describe a page <meta> and <link> tags, <page-info>, <page-stats> Page Metadata
Show who made it and how data-provenance, data-review, data-status, the <page-info> trust badge, signature checking Document Provenance
Help readers through a long article <page-toc>, <heading-links>, <reading-progress>, <foot-notes>, <reader-view>, <text-reader> Long Articles
Help readers find pages <site-search>, <site-index>, <site-map>, <topic-map>, <author-index>, <time-index>, <content-lens> Finding Content
Say what a link is for The rel attribute Link Relations
Define the terms you use <dfn>, <glossary-index>, <glossary-wc> Glossary Terms
Show how content changed <ins> and <del>, <change-set>, <version-switcher>, <compare-surface> Showing Changes
Let readers mark up their own copy <selection-menu>, <highlight-wc>, <note-wc> Highlights and Annotations
Let readers respond <comment-thread>, <comment-box>, <reaction-bar> Comments and Reactions

One article, described once

This notice states its author, dates, version, license and review status in the <head>, and nowhere else. The line under the title, the contents list, the link beside each heading, the tracked edit and the panel at the foot are all components reading the page. Open the panel at the bottom to see the metadata. Use the Tracking, Final and Original buttons to see the edit both ways.

The layout of the page you are reading is built the same way: the contents list beside this text is a <page-toc>, the headings are wrapped in <heading-links>, and the speaker button is a <text-reader>.

What is handled and what you provide

The components display and navigate content. They do not store it, build it or publish it.

Area The library handles You provide
Page metadata Reading the tags and rendering them: the provenance panel, reading time, word count, relative dates The <meta> and <link> tags, written by hand or by your build
In-page navigation A contents list with scroll tracking, heading permalinks and generated heading ids, a progress bar, numbered footnotes Headings in order, and the footnote text
Site-wide views Filtering, grouping and switching between views of a list of pages The list: a JSON file with one record per page, and a Pagefind index for search
Provenance and integrity Styles for declared provenance, the trust badge, checking a signature in the browser Honest declarations, a signing key and a signing step in your build, if you want signatures
Changes and versions Styles for <ins> and <del>, view toggles, a version picker, a line diff between two versions of a page The marked-up edits, the list of versions and the archived pages
Reader annotations Highlights and private notes kept in the reader's browser Nothing, unless you want to copy them to a server
Discussion The thread display, the comment form, reaction chips, and events for each action Storage, accounts and moderation. No comment is saved unless your code saves it.

The library does not produce feeds, an XML sitemap or a search index. This site builds its own with scripts that are not part of the package.

In this section

Page Metadata

The tags a page declares, which component reads each one, and the site index built from them.

Document Provenance

Declaring how content was made and reviewed, and signing a page so readers can check it.

Long Articles

Contents lists, heading links, progress, footnotes, a reading mode and read-aloud.

Finding Content

Search, indexes, maps and switchable views across a whole site.

Link Relations

Using rel to say what a link is for, and what the library does with it.

Glossary Terms

Marking defining uses of a term and building a glossary readers can filter.

Showing Changes

Tracked edits, image comparison and differences between versions of a page.

Highlights and Annotations

Reader highlights and private notes, stored in the browser.

Comments and Reactions

A threaded comment display, a comment form and reaction chips, wired to your own storage.

↑