fix: 404 page missing title in tablet/desktop view

This commit is contained in:
Cotes Chung 2022-10-07 15:55:44 +08:00
parent 76712c09cd
commit 5511b2883f
No known key found for this signature in database
GPG key ID: 0D9E54843167A808

View file

@ -20,7 +20,7 @@ layout: default
{% endif %}
{% endcapture %}
{% if page.collection == 'tabs' %}
{% if page.layout == 'page' or page.collection == 'tabs' %}
{% assign tab_key = page.title | downcase %}
{% assign title = site.data.locales[lang].tabs[tab_key] | default: page.title %}
<h1 class="dynamic-title">