添加path_section

This commit is contained in:
masnn committed 2020-04-09 20:10:24 +08:00
1 parent 53a6dbeb1a
commit a2600d5cc4
8 files changed
+67 -39

No files matched your search

+3 -3
View File
@@ -4,11 +4,11 @@
<div class="media">
<div class="media__body">
<div class="location-path">
{% for c in path_components %}
/ {% if c[1] %}<a href="{{ c[1] }}">{{ c[0] }}</a>{% endif %}
{% for c in path %}
/ {% if c[1] %}<a href="{{ c[1] }}">{{ c[0] if c[2] else _(c[0]) }}</a>{% endif %}
{%- endfor %}
</div>
<h1 class="location-current" data-emoji-enabled>{{ path_components[-1][0] }}</h1>
<h1 class="location-current" data-emoji-enabled>{{ path[path.length - 1][0] if path[path.length - 1][0] else _(path[path.length - 1][0]) }}</h1>
</div>
<div class="media__right">
{% include "partials/hamburger.html" %}