From b8899e6ea1f4df695ba4b3d49edf1ec3fa6bb273 Mon Sep 17 00:00:00 2001 From: bedroesb Date: Thu, 24 Feb 2022 13:51:31 +0100 Subject: [PATCH] has subtitle fix --- _layouts/page.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/_layouts/page.html b/_layouts/page.html index e55bed00..8708a0d0 100644 --- a/_layouts/page.html +++ b/_layouts/page.html @@ -3,8 +3,12 @@ ---
{%- if page.title %} + {%- if page.type %} {%- assign subtitle = page.type | replace: "_", " " | capitalize %} -

{% unless subtitle == nil or subtitle == blank or subtitle == "" %}{{subtitle}}: {% endunless %}{{ page.title }} +

{{subtitle}}: {{ page.title }} + {%- else %} +

{{ page.title }} + {%- endif %}
{%- if page.custom-editme %}