Elektrine lite

← Feed

@aartaka@merveilles.town

Post #1725685

2026-04-26 19:42 UTC

Cursed idea: “time to read” measurement from the number of paragraphs using CSS counters? No JS nor manual management required. #theWorkshop

Replies (2)

  • @aartaka@merveilles.town 2026-04-26 21:04

    To make a “time to read” counter for my site (without JS!) • I have to know how much my content actually takes to read. • To know that, I should analyze my posts. • To do that, I have to parse them (with ed(1), of course!) • To parse them, I have to rely on landmark tags. • And to rely on these, I have to fix previous syntaxes I used for paragraphs, to use never HTML format. • 300+ entries for old format across the blog. I guess I’m not doing “time to read” now, focusing on blog refactoring instead 🤦 #theVent

    Open ##1767858

  • @aartaka@merveilles.town 2026-04-26 22:36

    Okay, two significant obstacles: • CSS counters only increase by integer values • There’s no way to make calculations on counters with calc() No idea how to proceed.

    Open ##1767859