For 2022, I’m planning to use Tinderbox for my “daily notes” blog, so I started with a brand new Tinderbox file for managing a simple blog. The first revision is now at daily.baty.net.
Before I get too deep into this, I’d like to make sure I’m doing things correctly. Much has changed since I last did this in 2013.
My first question is about where to put action code/functions/macros/etc.
As a practical example, I’ve always considered the way note icons in outlines indicate age and size to be a brilliant and under-appreciated feature of Tinderbox…
I’d like to mimic this on my archives page.
I started by adding a conditional in the export template which shows an image icon if the post has an $Image. For other notes, I’d like to show an icon indicating the length of the note. (I don’t care yet if they yellow with age as they do in Tinderbox, as cool as that is.)
Generically, I think want a function something like “fnGenerateNoteIcon()” which returns a file name or path or HTML for rendering the correct icon, based on the note’s length and presence of an $Image attribute. Is this a function? A macro? I’m looking for guidance on the modern approach to something like this.