I pushed a minor upgrade to the post stats plugin today to fix the build issues with Hugo v0.158. It should now work for all the Hugo versions supported by Micro.blog. Reinstall or look out for an upgrade.
The v2 upgrade also introduced a few customisation options.
Plugin Settings
Two settings are available directly in the plugin configuration on Micro.blog:
- Remove Year Recap section from the stats page — Hides the Year Recap block at the top of the stats page, showing only the detailed all-time stats.
- Use the original minimal stats layout — Switches back to the original table-based stats layout introduced in v1, instead of the new card/chart design in v2.
CSS Variables
The plugin’s appearance can be customised by overriding CSS variables in your blog’s custom CSS at :root { }.
Colors
--ps-accent— Primary chart/highlight color (default:#3b82f6blue)--ps-accent-light— Chart fill/background tint (default:rgba(59,130,246,0.12))--ps-accent-muted— Secondary chart accent, e.g. hover states (default:rgba(59,130,246,0.35))--ps-up— Trend arrow color when count increased (default:#22c55egreen)--ps-down— Trend arrow color when count decreased (default:#ef4444red)--ps-neutral— Trend arrow color when unchanged (default:#94a3b8grey)
Layout & Shape
--ps-gap— Spacing between cards/sections (default:1rem)--ps-radius— Border radius on cards (default:10px)
Borders & Shadows
--ps-border— Card border color (default:rgba(128,128,128,0.15))--ps-shadow— Card shadow (default: subtle 1px drop shadow + border ring)
Opacity
--ps-muted— Opacity for de-emphasised elements (default:0.5)