Two weeks after Lamb 0.7.0, I released another significant new version of Lamb, my friction free microblogging project. This version includes support for Micropub, allowing you to post text and photos from anywhere, adds a Trash where deleted posts go for 30 days, support for drafts, a new docs site and a lot more (redirects)!
The default pagination size was increased so lists show 10 posts per page unless overridden by configuration.
Pagination was refactored into a single helper that can paginate either an in-memory list or a database query (including optional filtering + bound parameters), and callers were simplified to rely on it for reading the page number and per-page setting.
Result-building metadata was normalized (naming like total_posts/total_pages, offsets, prev/next page), reducing duplicated counting/offset logic in search and tag flows.
The UI pagination rendering was enhanced to show a condensed page range with ellipses and to style the current page consistently with links.
I was thinking of the concept of running a blog like #Lamb in CI, with the artefact hosted as HTML somewhere. Of course this is the essence of what a static site generator (SSG) is. The downside of a SSG is that the publish experience is not up to the same standard as a server-side blog, as the data structure not enforced in the editor and things like search don't exist or are limited.
Posting directly from Discord has the same problems as the above. It probably is a worse editing experience but you'd not have a site to manage.
Headless then is splitting off the rendering from the authoring, running that locally, syncing up the database to the cloud (sqlite, so just 1 file!) and having some minor render/search component chewing out the web-pages as needed. This seems overly complicated in the local setup and "Getting up and running" flows.
So there is still a need of a web admin of sorts and a rendering layer. I just need to add smart caching to Lamb so it's doing minimal work, should this need to scale out further than it does – who even knows how far this already scales, I have done zero optimisation.
Apart from that Lamb is on the right track for friction-free simple blogging. #technology
Lamb 0.5.3…
Lamb is Literally Another Micro Blog – Barrier free super simple blogging, self-hosted.
The update includes several feature improvements and design / layout enhancements:
Features:
Added support for meta descriptions to improve SEO and content representation
Enhanced metadata semantics with elements like itemprop for better accessibility
Introduced a dynamic title rendering function to manage site and page titles
Updated feed styles in the 2024 theme, including SVG background integration
Replaced the author meta tag with a more flexible author_name field
Design & Layout:
Refined the page title logic to use a global site title as a fallback
Adjusted H1 element styles for visual consistency
Refactored post rendering to improve layout and meta information display
Removed opacity issues and modified borders for better accessibility
Create FUNDING.yml by @svandragt in #97
Bump symfony/yaml from 7.1.5 to 7.1.6 by @dependabot in #99
Bump squizlabs/php_codesniffer from 3.10.3 to 3.11.1 by @dependabot in #100