All these items are generated by the same loop from the list partial. I could see different behaviors on multiple builds… Sometimes every badge has an icon sometimes there is no icon at all. Maybe someone of you has an idea.
Hugo builds pages in parallel where multiple pages are generated simultaneously.
So, if two or more pages were built at the same time, what conflicts might occur to produce the observed behavior? In your example, it is related to the Scratch counters. You have a scope problem.
Remember that if you are inside a range on your index page, then your index page’s .Scratch will be $.Scratch while the page you are currently rangeing on, will be .Scratch .