mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
path_components
This commit is contained in:
1 parent
5ca424da0b
commit
c93597703e
15 files changed
+134
-130
No files matched your search
@@ -5,7 +5,7 @@
|
||||
<div class="media__body">
|
||||
<div class="location-path">
|
||||
{% for c in path %}
|
||||
/ {% if loop.index < path.length %}<a href="{{ c[1]|default('#') }}">{{ c[0] if c[2] else _(c[0]) }}</a>{% endif %}
|
||||
/ {% if loop.index < path.length %}<a href="{{ url(c[1], c[2])|default('#') }}">{{ c[0] if c[3] else _(c[0]) }}</a>{% endif %}
|
||||
{%- endfor %}
|
||||
</div>
|
||||
<h1 class="location-current" data-emoji-enabled>{{ path[path.length - 1][0] if path[path.length - 1][2] else _(path[path.length - 1][0]) }}</h1>
|
||||
|
||||
Reference in new issue
Block a user