From 5511b2883fd5a395fddfb642588d00c122f18da7 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Fri, 7 Oct 2022 15:55:44 +0800 Subject: [PATCH] fix: 404 page missing title in tablet/desktop view --- _layouts/page.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_layouts/page.html b/_layouts/page.html index d034779..2b9b6e5 100644 --- a/_layouts/page.html +++ b/_layouts/page.html @@ -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 %}