From 5e9cf80cfeb510be213c46866d6d477cab06e8b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20M=C3=BCller?= Date: Fri, 17 Nov 2023 23:26:32 +0100 Subject: [PATCH] Use `page_title` for book page --- _layouts/post.html | 2 +- _layouts/wide.html | 2 +- _pages/learning/crystal_programming.html | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/_layouts/post.html b/_layouts/post.html index 19aed9f5..9a70e2c2 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -6,7 +6,7 @@
-

{{ page.title }}

+

{{ page.page_title | default: page.title }}

{% if page.subtitle %}

{{ page.subtitle }}

{% endif %} diff --git a/_layouts/wide.html b/_layouts/wide.html index ad954870..c5cd7f6a 100644 --- a/_layouts/wide.html +++ b/_layouts/wide.html @@ -3,7 +3,7 @@ ---
-

{{ page.title }}

+

{{ page.page_title | default: page.title }}

{{ content }} diff --git a/_pages/learning/crystal_programming.html b/_pages/learning/crystal_programming.html index 7f81df2a..18d7f058 100644 --- a/_pages/learning/crystal_programming.html +++ b/_pages/learning/crystal_programming.html @@ -1,5 +1,6 @@ --- -title: "Building efficient, safe, and readable web and CLI applications with Crystal" +title: Crystal Programming +page_title: "Building efficient, safe, and readable web and CLI applications with Crystal" layout: book book: