Skip to content

Releases

0.53.1

Choose a tag to compare

@FalkoJoseph FalkoJoseph released this 19 Nov 19:10

Fixed

  • A site whose pages use templates of its own applies over a site that has templates. Applying AZ Lindenhof or Wilgendaal to a new site (which starts from Starter) stopped at the first such page, saying its template must be one the site already had.

0.53.0

Choose a tag to compare

@FalkoJoseph FalkoJoseph released this 19 Nov 18:23

Added

  • A menu link brings its own fields. Give a menu an icon or a description field, and a Repeat over the menu reads them on each link (item.icon, item.description), beside its label and address: quick links with an icon, a mega menu with a line under each link.
  • Every part of a form is a class of its own under Design → Styles → Forms, styled with the same controls, states and live sample as every other class: All Fields and All Choices (what every field and every checkbox, radio button and switch share), Text Field, Text Area, Dropdown, Checkbox, Radio Button, Switch, Option Text, Label, Help Text and Error Message. A field's State menu has Invalid, Disabled and Placeholder, a choice's Checked, and the sample shows each. A dropdown's Arrow, a checkbox's Check Mark, a radio button's Dot and a switch's Track (with a Border, a line around it that keeps the knob centred) and Knob (with a Color When On) have controls of their own.
  • Labels inside or beside their fields. Styles → Forms → Label → Position: Above (as before), Beside (in a column of a width you set, above again on a phone) or Inside, where the placeholder is until the field is clicked into or filled in, when the label moves above it. In a stylesheet: .cms-field { @apply label-inside; }.
  • Groups inside groups, in any order. Every group of Styles, Elements, Forms and Articles included, takes groups of its own (New Group), and its rows and groups are dragged into another order, or into a group; Move to Group… in a row's menu does the same without dragging. The groups of Styles are dragged into another order too. It is saved with the styling, in its versions, and agents set it with styling/update (arrangement).
  • One way to make a style, in any group. New Style asks what it styles: a Class blocks wear, an Element (a table, an image, a list, a code block, a highlight and more) or an ID, the one block with that id, and which group it goes in. A style you make is renamed, duplicated, moved to another group or deleted the same way whatever it is; what the site was given stays in its group.
  • Menu Button block. A button that opens and closes a menu, with lines that turn into a cross: choose how under Animation (Cross, Squeeze, Spin or None), with two or three lines and a label that can show or only be read aloud. It follows its menu from the interaction that opens it (aria-expanded), so the label stays put and only the icon moves, and it holds still for visitors who ask for less motion.
  • Search Field and Search Results blocks, for sites people mostly search. The field goes on any page, looks like the site's other fields and buttons, is a search landmark named by its label (so the header's and the page's are told apart), and sends what was typed to the results page (/search unless you pick another), also without JavaScript. The results page finds every word typed, the start of a word as well ("recycl" finds "recycling"), with or without accents, puts title matches first, and shows each result's kind, date and a snippet with the words marked. Filters by kind of page ("Service", "News") show when the results have more than one, Show More Results adds the next ones, and screen readers hear how many were found. On a site in several languages it finds pages in the page's own language.
  • The site's search index (/search.json) says more of each page: its kind (its collection's name for one entry), its date for a dated collection, and the words of a field named keywords when its collection has one, so a page on waste collection can also be found as "bin".
  • Upcoming and past lists. site.today is the day a page is built on: a Repeat of events whose starts is more than {site.today} lists only what is still to come, and its page is built again when the day turns.
  • A to Z lists. The filter initial gives the letter a value is filed under (item.title|initial: capital, without accents, # for a digit). Group a Repeat by it, and the letters run from A to Z.
  • Filter a list grouped from A to Z. In a List Filter, a Repeat grouped by letter filters the items inside its letters: a letter with nothing left hides, the choices count items, not letters, and a sort orders each letter on its own.
  • Map block. An open map with pins, drawn from vector tiles in the browser: no account, no key and no cookies (OpenFreeMap's tiles of OpenStreetMap). Pick a style from nine presets — Site Colors (the default, painted in your design's colors and following its color schemes and dark mode), Light, Dark, Streets, Bright, Night, Gray, Pastel and Blueprint — and set its land, water, park, road, label and pin colors yourself. Each Place in it is a pin with a name, details, a link and a directions link, and a Repeat inside a Map makes one per item, so a map of every campus or office follows its collection. People who don't see the map get its places as text, a still map is one switch away, scrolling the page never zooms it, and the map loads only when it scrolls near. The builder shows it as the site will.

Changed

  • Long-form text has a calmer rhythm by default. Its spacing is measured in the size of its text, not in the size of each heading, so a large heading no longer pushes itself apart. The gap under a heading is now at least the gap between paragraphs (it used to be smaller, so headings stuck to their text), with about twice that above it; new defaults are --prose-blocks: 1.25em, --prose-headings: 2.25em, --prose-after-headings: 1em and --prose-items: 0.5em. A site that sets its own keeps them, now measured the same way. Tables read at a line height of 1.5.
  • Classes is now Styles, under Design: it holds classes, elements and IDs alike. Its old address leads there.
  • Breaking. Form fields are styled with classes, part by part, in @layer components (.cms-input, select.cms-input, input.cms-check, .cms-label…). The kernel's own look of a field weighs nothing now, so any rule of the site wins over it. The --field-* properties still work as the defaults, and a site's own on :root show under Code.
  • Styles → Articles → Article styles long-form text as a whole, with its spacing under Text Spacing.
  • A new preview under Styles. It stands at the top of the editor, above State and Classes as the canvas stands over a block's Design tab, from edge to edge on the page's own background, as tall as what it shows with even room around it, instead of a fixed box that shrank it.
  • Component pictures show what goes in them. In the components list, the inserter and Start From a Component, a property with nothing in it shows its name in a muted color and an empty image a neutral picture, as the canvas does, so a card made to be filled in no longer looks blank. A component's picture in the list is also as tall as the component, instead of a thin strip.
  • Component pictures show the whole component, at a size you can read. In the components list, the inserter and Start From a Component, each picture is drawn at the width where it reads largest and fits whole: a card as wide as a column, a row of a list readable, a header across a window, with some room around it. They used to be drawn across a desktop window, so a card's photo filled the picture and its title was cut off.
  • Plugins is in the main sidebar, below Analytics, instead of under Settings.
  • Breaking. The Embed block no longer shows Google Maps: a map is a Map block now. An Embed with a Google Maps address shows nothing until it is replaced by one.
  • A select field shows its option's label on a page and in a list's filter, search and sort: Test or scan, not test. It still equals its stored value, so entry.kind|is:test and classes that follow it keep working, and entry.kind.value gives the value itself.
  • A site's own dates move with it. When a site is applied, its entries' date and date range fields that were ahead of its making are still ahead now, as their publication dates already were. They move by whole weeks, so a Saturday market stays on a Saturday and an evening class keeps its hour: an event in a site made a month ago is still to come, on the same day of the week.

Removed

  • Breaking. The Search block is gone, and with it the search box that opened over the page and its ⌘K shortcut on the site. ⌘K belongs to the admin. A page that had a Search block shows nothing in its place: put a Search Field there instead and a page with Search Results at /search, the address the field sends people to.

Fixed

  • A file field's Choose File button sits in the middle of the field, as far from its line above, below and to the left (--field-file-inset), also where the browser rounds the field's line to a whole pixel.
  • A pinned item no longer lights up for a moment when you open Content, Design or Structure. The sidebar marked the screen being opened while the one before was still on view; it now marks only the screen you see.
  • The hidden “Skip to content” link no longer shows a faint shadow along the top of every page: it casts one only once it is focused.
  • Applying a site’s design again keeps its components synced. A component the site brought in a newer version came in as a copy, so the pages that use it showed it without its text. A field the site leaves out now gets its default, as when the site was first applied.
  • A menu's panels no longer flash over the page as it loads. Each panel of a Menu behavior used to fade out once when the page started; it is hidden from the start now, and still fades in and out when it opens.
  • A table wider than the screen can be scrolled from the keyboard too: its frame takes the focus, and...
Read more

0.52.0

Choose a tag to compare

@FalkoJoseph FalkoJoseph released this 17 Nov 19:33

Added

  • New Group under Classes. Make a group of classes on its own, before any class is in it. A group now stays, empty or not, until you delete it.

Changed

  • New Class and Move to Group pick the group from a list of the site's groups, or No Group, instead of typing its name. Inside a group, New Class starts in that group.
  • Buttons and Fields under Layout shows one size at a time. Pick Small, Medium or Large beside the title, and that size's Height, Padding and Text sit in three rows like every other group, instead of nine rows under three headings.

Fixed

  • The colour picker no longer ends in an empty bar. The bar at its foot only appears when it holds the opacity of a theme colour or Clear.

0.51.0

Choose a tag to compare

@FalkoJoseph FalkoJoseph released this 17 Nov 00:00

Added

  • The Code page lists its files as they lie in content/styling, in a real file tree: theme.css, custom.js, and the folders scripts, styles and vendor with the folders inside them. Folders open and close and stay as you left them, the arrow keys move through the tree, the + at the top makes a script or a stylesheet or adds a library, and a folder's own menu makes one inside it.
  • Every file on the Code page keeps its history. Each save is a version, as for entries: History in the top bar lists who saved the open file and when, an older version shows line by line what bringing it back changes, and Restore Version puts it back in the editor as a change you can save or undo. Undo and Redo sit beside it, as in every other editor.

Changed

  • One history for everything that keeps versions. Entries, the styling and the site's code keep their versions in the same place and show them the same way, with the same Undo and Redo. Design calls its versions History now, like the entry editor and the Code page, and saves by the same person within ten minutes are one version there too. The styling's versions kept so far move into it.
  • Breaking. revisions/list takes kind and subject instead of entryId ({"kind": "entry", "subject": "<entry id>"}, {"kind": "styling", "subject": "theme"}, {"kind": "code", "subject": "scripts/hero.js"}), and revisions/get answers with kind and subject instead of entryId. revisions/restore restores a version of any kind.

Removed

  • Breaking. The abilities styling-versions/list and styling-versions/get: use revisions/list with kind styling and subject theme, and revisions/get. A plugin that kept entry revisions through Cms\Content\Revisions\Revisions uses Cms\Revisions\Revisions, which names what a version is of by kind and subject.

0.50.0

Choose a tag to compare

@FalkoJoseph FalkoJoseph released this 16 Nov 23:40

Changed

  • Breaking. Globals and menus are content types. A global is a collection of the type Global: its values are its one entry, with drafts, history and translations like any other, and templates read them as before (globals.<handle>.<field>). A menu is a collection of the type Menu: each link is an entry, its title the words and its Link field where it goes, nested by dragging in the menu's list and added with Add Link. A link to a page says the page's title unless you give it other words, and goes when the page is deleted. Globals and menus are in the Content room, each under its own heading, and their fields and settings are in Structure beside Collections and Taxonomies. Pages show a menu with the Repeat block as before.
  • Breaking. A site keeps its globals and menus in content/collections/, as collections of the type global and menu: content/globals/ and content/navigation/ are gone. So are the abilities globals/* and navigation/* (use collections/* and entries/*) and the permissions globals.* and navigation.* (each collection has its own entries.<handle>.*). The navigation.entry filter is entry.localized.
  • Code is under More in the main sidebar: one click away when you need it, out of sight when you don't. Pin it to keep it in view.
  • A link field keeps only a web address or a path (https://…, /…, #… or ?…). Anything else, such as javascript:, never reached a page and is now refused when it is saved.

Removed

  • Breaking. The modules letterncms/globals and letterncms/navigation, with the dashboard's Globals and Menus widgets: globals and menus are content types now.
  • Breaking. cms migrate no longer renames the pattern block of older sites to component.

Fixed

  • Applying a site with Rename for what clashes no longer skips a number when another collection has an entry of the same name, and never gives a global a second set of values.

0.49.0

Choose a tag to compare

@FalkoJoseph FalkoJoseph released this 16 Nov 23:05

Changed

  • Back follows the trail. The top bar shows where you are again, each level a link: Design / Classes / Elements / Heading 1. Back, in the top-left corner, or Esc, goes to the level just before the screen's name, so from a class you reach its group and then Classes, never straight to the Dashboard. A page opened from the Dashboard goes back to its list, like any other.
  • Patterns are components that aren't synced. A component has a Synced setting, on by default: a synced one is placed as itself and changes everywhere it is used; one that isn't is inserted as a copy of its blocks, to change freely. Properties belong to synced components. Components keep a category and keywords, and are listed by category with the usual ones first.
  • The inserter's tabs are Blocks and Components. Components shows every one as your site draws it, by category; search finds blocks and components together.
  • Make a Component asks whether it is synced. On, the blocks you selected become the component; off, a copy is saved to start from and the page keeps its blocks. A new, empty page offers Start From a Component: the whole pages among your components that aren't synced.

Removed

  • Breaking. Patterns, as a collection and a page of their own: their files go in content/collections/components/ with synced: false.
  • Breaking. The abilities patterns/list and patterns/save: components/list returns synced and keywords and takes category and synced, and components/save takes synced, keywords and blocks as Block Markdown.
  • Breaking. The blocks.pattern-sources filter: blocks.component-sources reads <handle>.md (front matter and Block Markdown) as well as <handle>.json.
  • Breaking. The /__pattern/<handle> preview: /__component/<handle> draws a component alone.

Fixed

  • In Pages, a page that comes with a feature or plugin can't be selected for actions on several pages, also once you've made it your own: Delete there would quietly have put back its standard version. Going back to the standard version stays in its own ⋯ menu.

0.48.0

Choose a tag to compare

@FalkoJoseph FalkoJoseph released this 16 Nov 22:25

Added

  • Categories and tags. A collection now has a type: Entries (pages, posts, projects), Categories or Tags. Categories and tags are taxonomies: other entries are filed under them with a Terms field. Categories are curated and nest; tags are flat, and a word typed into a terms field that no tag has yet becomes a new tag when the entry is saved, offered with the existing tags of the entry's language as you type; a save that is refused makes none. Who may add entries to the taxonomy may add tags, as drafts when they may not publish there. Every term is an entry: rename, translate and give it fields and a page as any other.
  • A collection's type is in its settings and can change there. A taxonomy that a terms field or an archive still uses stays one, and nested entries are not laid out flat; both say why.
  • Categories and tags in entry lists: a terms field can be a column, with the names of its terms.
  • A taxonomy that a field or an archive uses can't be deleted from under it: deleting it says where it is used.
  • Templates read a related entry's own fields, at any depth and in globals: entry.topic.colour, entry.topic.url, a Repeat over entry.tags with each tag's item.url. A page that shows one is rebuilt when it changes.
  • A Repeat's Only with Tag lists the entries filed under the tag of that name or slug.

Changed

  • Breaking. type: categories or type: tags in a collection's definition replaces taxonomy: true, and a taxonomy's structure is its type's: categories are a tree, tags a list. collections/list says type where it said taxonomy.
  • Breaking. The field for a list of short values (hosts, addresses, keywords) is called List, type: list; it was tags. Tags that entries are filed under are a taxonomy.
  • Breaking. terms/import is gone: tags are a taxonomy from the start.
  • The sidebar groups what things are. The Entries room is Content, with your collections under Entries and your categories and tags under Taxonomies. Structure lists Collections and Taxonomies apart, under Content Types, then Layout (templates, components, patterns) and Site (navigation, code). New Taxonomy makes categories or tags.
  • One way back, one level at a time. Back, in the top-left corner beside the sidebar button, is the admin's only way back, on every screen that sits under another, and it always goes up exactly one level: from a class to its group, from the group to Classes, from Classes out of Design. Esc does the same. The top bar names the screen and nothing else, with no trail of links or second arrow beside it.
  • One list of pages. The pages features and plugins bring, like sign-in, the account pages and the store's page for each listing, are listed with your own pages instead of on tabs of their own, under the page whose address they share (the store's listing page under Store). They stay where their address puts them: open one to edit it as your own, and Use Standard Version in its ⋯ menu goes back to the one that comes with it. An address that stands for many pages, like /store/{slug}, shows quieter.
  • Pickers open where your value is. A colour's Theme and Palette lists, the fonts, a field's theme values and the icons scroll to the one you chose, so a scheme's colour shows its own row instead of the top of the list. An icon further down the set than the first page reaches is shown first.
  • The arrow keys keep their place in sight in the class field's suggestions and in Add a Property: the list scrolls with the highlighted row.

0.47.0

Choose a tag to compare

@FalkoJoseph FalkoJoseph released this 16 Nov 19:45

Added

  • A console under the Code editor. It runs a page of your site with your saved code, again after each save, and lists what the page logs, its errors and what it failed to load; a message from one of your files opens it at its line. Type JavaScript to run it on the page, choose another page by its address or by following a link, and show the page beside it. ⌃ ` shows or hides it.

Changed

  • Code is an editor like the ones you know. Files open in tabs that keep their undo and their place, a dot marks unsaved changes, and the line under it says where the cursor is. Save (⌘S) formats every changed file with Prettier and saves them together; nothing saves by itself. Format Document (⌥⇧F) formats the open file.

0.46.0

Choose a tag to compare

@FalkoJoseph FalkoJoseph released this 16 Nov 19:12

Added

  • Right-click a block, on the page or in the Outline, for its menu right where you clicked: Cut, Copy, Paste, Duplicate, inserting before or after, moving, selecting the block around it, Make a Component, Save as Pattern and Delete. The toolbar's ⋯ holds the same. In text you're typing in, right-click keeps your browser's own menu.

Changed

  • Styles are Classes now, as they are in your stylesheet. Design › Classes lists its groups, and each group its classes, by name only, in the same panels as your settings, with a search on top. A class is named as written everywhere, in its list, its title and the class field (eyebrow, btn-primary).
  • One field for an element's classes at the top of the Design tab: every class it wears, as written: your own first, as named chips, then Tailwind's, each tinted while it is set in the state and screen you're styling, as the panel's labels are. Type in it to find a class, Tailwind's first, then your own, then your schemes; press ↓ to list your own. It folds away like the sections under it, and its ⋯ has Save as Class… and Copy Classes.
  • State is a row of its own above it, and the state you choose shows: the selected block on the canvas, and the sample of a class, are drawn hovered, pressed or focused while you style that state. A state with styles of its own carries the dot every other change does.
  • Design's panels look like your settings: the same panels and headings.
  • Design's sidebar starts with your site: Sites and Browse Store, then the theme. Design still opens on Colors. Navigation is in Structure now.
  • The menu beside your site's name holds the Dashboard, Open Site and Customize Sidebar…; you switch sites under Design › Sites.
  • Leaving Settings takes you back exactly where you were, a page inside Design or Structure included.
  • A screen inside a group, such as a group of classes or a store listing, puts its name right beside its way back.
  • Every tooltip is the admin's own: an icon button shows its name in it by itself, and nothing falls back to the browser's.
  • A room's way out in the sidebar reads Back; its tooltip says where it leads.

Fixed

  • In the editor, a header that changes as the page scrolls (a background, hiding while you scroll down) does so on the canvas too.
  • Buttons and Fields under Layout shows each size's height, padding and text in full.

0.45.2

Choose a tag to compare

@FalkoJoseph FalkoJoseph released this 16 Nov 18:02

Fixed

  • The Dashboard's Recently Edited lines up its collection, status and time on every row, whatever the status says.