finally wrote a helper macro for this, and also finally realized how to do formatting strings in jinja (shut up shut up shut up, python 3.6 format strings have made me soft okay).
hoping to have most parts of the site have an appropriate card (not in this one changeset, though, gonna be doing more work throughout the month).

by