Template
mirror of
https://github.com/cotes2020/jekyll-theme-chirpy.git
synced 2026-11-22 02:47:02 +00:00
Simplify the top-bar title detect process
This commit is contained in:
1 parent
dbf86a2309
commit
9620eddd12
2 files changed
+1
-3
No files matched your search
@@ -50,7 +50,7 @@
|
||||
<div id="topbar-title">
|
||||
{% if page.layout == 'home' %}
|
||||
{{- site.data.locales[lang].title | default: site.title -}}
|
||||
{% elsif page.collection == 'tabs' or page.dynamic_title %}
|
||||
{% elsif page.collection == 'tabs' or page.layout == 'page' %}
|
||||
{%- capture tab_key -%}{{ page.url | split: '/' }}{%- endcapture -%}
|
||||
{{- site.data.locales[lang].tabs[tab_key] | default: page.title -}}
|
||||
{% else %}
|
||||
|
||||
@@ -7,8 +7,6 @@ redirect_from:
|
||||
- /norobots/
|
||||
- /assets/
|
||||
- /posts/
|
||||
|
||||
dynamic_title: true
|
||||
---
|
||||
|
||||
{% include lang.html %}
|
||||
|
||||
Reference in new issue
Block a user