mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: fix #850
This commit is contained in:
1 file changed
+2
-1
@@ -25,7 +25,8 @@
|
|||||||
{%- if pdoc.tag|length > 0 %}
|
{%- if pdoc.tag|length > 0 %}
|
||||||
{%- if not inline %}<ul class="problem__tags">{% endif -%}
|
{%- if not inline %}<ul class="problem__tags">{% endif -%}
|
||||||
{%- for tag in pdoc['tag'] %}
|
{%- 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 -%}
|
{%- endfor -%}
|
||||||
{%- if not inline %}</ul>{% endif -%}
|
{%- if not inline %}</ul>{% endif -%}
|
||||||
{%- else -%}
|
{%- else -%}
|
||||||
|
|||||||
Reference in new issue
Block a user