Fix tabs & improve topbar items
This commit is contained in:
parent
46d80cbf9a
commit
72ba1f7849
2 changed files with 7 additions and 11 deletions
|
@ -42,7 +42,7 @@
|
|||
<i class="fa-fw {{ tab.icon }} ml-xl-3 mr-xl-3 unloaded"></i>
|
||||
{% capture tab_name %}{{ tab.url | split: '/' }}{% endcapture %}
|
||||
|
||||
<span>{{ site.data.locales[lang].tabs.[tab_name] | default: tab_name | upcase }}</span>
|
||||
<span>{{ site.data.locales[lang].tabs.[tab_name] | default: tab.title | upcase }}</span>
|
||||
</a>
|
||||
</li> <!-- .nav-item -->
|
||||
{% endfor %}
|
||||
|
|
|
@ -31,16 +31,12 @@
|
|||
<span>{{ page.title }}</span>
|
||||
{% endif %}
|
||||
|
||||
{% else %}
|
||||
|
||||
{% unless page.layout == 'post' %}
|
||||
{% elsif page.layout == 'category' or page.layout == 'tag' %}
|
||||
<span>
|
||||
<a href="{{ item | relative_url }}">
|
||||
{{ site.data.locales[lang].tabs[item] | default: page.title }}
|
||||
</a>
|
||||
</span>
|
||||
{% endunless %}
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% endfor %}
|
||||
|
|
Loading…
Reference in a new issue