Skip to content

0.16.0

Latest

Choose a tag to compare

@svandragt svandragt released this 14 Nov 13:54
fa11d7d

Lamb 0.16.0 replaces the settings text box with a form and makes Lamb more opinionated: five settings are deprecated and stop working in 0.17. A post with broken front matter is now refused instead of saved with its fields dropped.

⚠️ Before you upgrade

  • The first save of the new settings form drops any comments in your stored settings. Copy them somewhere first if you want to keep them.
  • The settings form requires a site title, a site URL and an author name. Fill them in the first time you save.

Highlights

  • Edit your site settings in a form with labelled fields instead of an INI text box.
  • Publish a page with slug: home to show it at the top of your home page.
  • Lamb adds preconnect hints for the sites your posts load images and video from, with no setting needed.
  • Lamb refuses to save a post whose front matter is not valid YAML, so a draft: true line can't be lost.
  • Deleting a post takes one click, because the trash restores it.
  • Feed drafts stay drafts when the feed updates them or you edit them.

Upgrade

  1. Run bin/upgrade as the web server user, for example sudo -u www-data bin/upgrade.
  2. Open /settings and save once. The form lists any deprecated setting your site still uses.
  3. Replace each deprecated setting before 0.17, as listed under Details.

Details

Settings form

/settings shows labelled fields instead of the INI text box, and the Redirections tab has a filter box. The site export is a "Download export" button. After a save the form shows your saved values and no success message. It only shows a message when something needs your attention.

Deprecated settings

These keys still work in 0.16 and stop working in 0.17:

  • posts_per_page: Lamb will show 10 posts per page.
  • 404_fallback: add a [redirections] entry for each old address you still want to forward.
  • [preconnect]: Lamb now adds these hints itself. Origins you listed still come first until 0.17.
  • micropub_debug: set the LAMB_MICROPUB_DEBUG environment variable instead.
  • experimental_features: pass --experimental to bin/lamb import instead.

Front matter checks

A post whose front matter block is not valid YAML is no longer saved. The editor keeps your text and shows the parser's message. Micropub clients get a 400 error with the same message.

Fixes

  • Editing a feed draft, or the feed updating the item, no longer publishes it. bin/lamb migrate marks existing feed drafts with draft: true.
  • Pasting a link copied on iOS over selected text turns the selection into a link.
  • Links whose address contains /tag/, such as GitHub releases, are no longer styled as hashtags in the 2026 theme.
  • Links inside code in a blockquote in about.md stay as written.

How we checked

Check Result
Unit, functional and acceptance tests Passed on PHP 8.4 and 8.5 in CI
Lint and static analysis No errors
Release checks: Docker with FrankenPHP, and nginx with php-fpm Passed
Code review of the whole release 23 findings: 19 fixed, 2 not valid, 3 follow-ups filed for 0.17

Known gaps

  • A config section Lamb doesn't read, such as a filled [preconnect] after 0.17, can only be cleared with Reset to defaults. #961 tracks this.
  • Media in the slug: home post gets no preconnect hints. #967 tracks this.
  • RedBean prints a deprecation notice on PHP 8.6 betas. The fix is sent upstream.

Issues closed

  • #867 (Show a page at the site root when a post has the slug home)
  • #912 (Keep links inside blockquoted code as written in about.md)
  • #917 (Edit site settings in a form with a required identity)
  • #918 (Filter the redirections list on the settings page)
  • #919 (Offer the settings export as a download button)
  • #921 (A feed draft is published when the feed updates the item)
  • #924 (Editing a feed draft publishes it)
  • #925 (External links containing /tag/ are styled as hashtag chips)
  • #932 (Pasting a link copied on iOS doesn't link the selected text)
  • #939 (Refuse a post save when its front matter is not valid YAML)
  • #940 (Remove the delete prompt and the settings success message)