Did you check this theme code?
https://github.com/tshenry/discourse-trust-level-avatar-flair/blob/master/common/head_tag.html