1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-06-13 19:22:13 +00:00

Fix tabs & improve topbar items

# Conflicts:
#	_includes/sidebar.html
#	_includes/topbar.html
This commit is contained in:
Cotes Chung 2021-08-03 22:55:35 +08:00
parent b3e7f68486
commit 8a1cc5279a
2 changed files with 7 additions and 11 deletions

View File

@ -42,7 +42,7 @@
<i class="fa-fw {{ tab.icon }} ml-xl-3 mr-xl-3 unloaded"></i> <i class="fa-fw {{ tab.icon }} ml-xl-3 mr-xl-3 unloaded"></i>
{% capture tab_name %}{{ tab.url | split: '/' }}{% endcapture %} {% capture tab_name %}{{ tab.url | split: '/' }}{% endcapture %}
<span>{{ site.data.locales[site.lang].tabs.[tab_name] | default: tab_name | upcase }}</span> <span>{{ site.data.locales[site.lang].tabs.[tab_name] | default: tab.title | upcase }}</span>
</a> </a>
</li> <!-- .nav-item --> </li> <!-- .nav-item -->
{% endfor %} {% endfor %}

View File

@ -31,16 +31,12 @@
<span>{{ page.title }}</span> <span>{{ page.title }}</span>
{% endif %} {% endif %}
{% else %} {% elsif page.layout == 'category' or page.layout == 'tag' %}
{% unless page.layout == 'post' %}
<span> <span>
<a href="{{ item | relative_url }}"> <a href="{{ item | relative_url }}">
{{ site.data.locales[site.lang].tabs[item] | default: page.title }} {{ site.data.locales[site.lang].tabs[item] | default: page.title }}
</a> </a>
</span> </span>
{% endunless %}
{% endif %} {% endif %}
{% endfor %} {% endfor %}