Please put all of this code (which is common to the three badge HTML files) in the new layout derived from `base` mentioned in the previous comment so that it isn't repeated in several files.