1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-12-24 08:37: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

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