Publican v0.10.1 update
313 words, 2-minute read

Publican v0.10.1 was released on .
There should be no breaking changes, but the following features have been improved. We’re getting closer to a version 1.0.0 release!
Fixed slug string replacement issue #
In previous Publican releases, slug string replacement occurred after the file path had been converted to a slug. Consider the following example which removes two or more digits followed by an underscore:
publican.config.js
excerpt
// slug replacement - removes NN_
publican.config.slugReplace.set(/\d{2,}_/g, '');
The file path path/01_index.md
is converted to /path/01_index/index.html
first. The slugReplace
would then convert that to /path/index/index.html
and we get an unnecessary index
path.
In v0.10.1, slug string replacement occurs first. The file path/01_index.md
is converted to /path/index.md
which then becomes /path/index.html
.
The update is unlikely to break your site, but you may need to check paths are what you expect them to be.
Word count accuracy improvement #
Word counts on documents with embedded <code>
sections should be more accurate.
New Publican.dev tools documentation #
There’s a new Tools menu on this site that provides documentation for my other utilities that can help Publican site development.
StaticSearch – my client-side search engine for static sites
LiveLocalhost – my tiny local development web server with automatic hot reloading
Get started #
The Publican documentation provides a quick start guide, a detailed set-up guide, API references, and common recipes you can use and adapt for your own projects.