I’m using dates with spaces (e.g. linkFormat="%Y-%m-%d (%A)" -> 2020-10-19 (Monday)) so I had to change all instances of $date_cmd +$linkTemplate to have quotes: $date_cmd +"$linkTemplate", or else date thinks there’s more than one argument.
Also, I didn’t like the non-existing notes link to have a blue color (hard to distinguish, despite the existing ones being bold), so I cleared all highlights (hle, hlne, hlt), added a span with a class to both dates:
if [ -e "$testFile" ]; then # Daily note file exists
printf "| $hil$hle<span class=\"journal-calendar-date\">[[ %s \| %s ]]</span>$hle$hil " "`$date_cmd +"$linkTemplate" […]
elif [ "$linkNonExisting" == true ]; then # Daily note file does not exists, but still make a link
printf "| $hil$hlne<span class=\"journal-calendar-date\">[[ %s \| %s ]]</span>$hlne$hil " "`$date_cmd +"$linkTemplate" […]
I’m just wondering whether the idea of highlighting today’s date in the Calendar was ever developed further. I use the default Calendar that has today’s day in bold, but I would love a more conspicuous appearance like a fully highlighted square.