blog: fix bug (#527)

This commit is contained in:
panda authored and GitHub committed 2023-03-04 11:15:41 +08:00
1 parent 44a579878b
commit 203195685d
3 files changed
+6 -5

No files matched your search

@@ -83,8 +83,9 @@
<li class="menu__seperator"></li>
{%- for item in ui.getNodes('UserDropdown') -%}
<li class="menu__item nojs--hide">
<a href="{{ url(item.name, (item.args(handler) if typeof(item.args)=='function' else item.args) or {}) }}" class="menu__link">
<span class="icon icon-{{ item.args.icon }}"></span> {{ _(item.args.displayName or item.name) }}
{% set args = (item.args(handler) if typeof(item.args)=='function' else item.args) or {} %}
<a href="{{ url(item.name, args) }}" class="menu__link">
<span class="icon icon-{{ args.icon }}"></span> {{ _(args.displayName or item.name) }}
</a>
</li>
{%- endfor -%}