added colors to tags (#1631)

This commit is contained in:
jojoemade
2020-04-14 14:18:11 +02:00
committed by GitHub
parent 1dfceeea99
commit 0bc9e74853
9 changed files with 55 additions and 7 deletions

View File

@@ -159,8 +159,7 @@
{% endmacro %}
{% macro badge(title, color) %}
{# black, green, blue, yellow #}
<span class="badge bg-{{ color|default('red') }}">{{ title|trans }}</span>
<span class="badge" style="background-color:{{ color|default('#dd4b39') }}">{{ title|trans }}</span>
{% endmacro %}
{% macro alert(type, description, title, icon) %}
@@ -369,7 +368,7 @@
{% macro tag_list(taglist) %}
{% import _self as macro %}
{% for tag in taglist %}
{{ macro.badge(tag.name , 'green') }}
{{ macro.badge(tag.name, tag.color|default('#00a65a')) }}
{% endfor %}
{% endmacro %}