I’m trying to create a simple data dashboard on my Hugo site that will simply add or subtract 1 from a number once a day. For example:
Days until final paper due: N-1
Days since my last haircut: N+1
I was thinking of making a bash script that changed the variable each day, but I thought there might be a solution with .scratch. Has anyone done this? Any ideas or pointers appreciated.
@divinerites is right – Scratch still has its use, but it was added to Hugo before Go template got “variable reassignment support”, which made it’s prime use case obsolete.