{#- chirp-ui: Trending Tag component Hashtag with count/trend indicator. Usage: from "chirpui/trending_tag.html" import trending_tag trending_tag(tag="python", href="/tag/python", count="12.5K") trending_tag(tag="webdev", count="8.2K", trend="up") -#} {% def trending_tag(tag, href=none, count=none, trend=none, cls="") %} {% set tag_class = " chirpui-trending-tag--" ~ trend if trend else "" %} {% if href %} {% else %} {% end %} # {{ tag }} {% if count %} {{ count }} {% end %} {% if href %} {% else %} {% end %} {% end %}