This commit is contained in:
undefined committed 2024-08-01 01:14:02 +08:00
1 parent 143bac4baa
commit 1954208d36
1 file changed
+2 -1
@@ -25,7 +25,8 @@
{%- if pdoc.tag|length > 0 %}
{%- if not inline %}<ul class="problem__tags">{% endif -%}
{%- for tag in pdoc['tag'] %}
<li class="problem__tag"><a class="problem__tag-link" href="{{ url('problem_main', query={q:'category:'+tag}) }}">{{ tag }}</a></li>
{% set _w = '"' if tag.includes(' ') else '' %}
<li class="problem__tag"><a class="problem__tag-link" href="{{ url('problem_main', query={q:'category:'+_w+tag+_w}) }}">{{ tag }}</a></li>
{%- endfor -%}
{%- if not inline %}</ul>{% endif -%}
{%- else -%}