From 94cd87f0473a088200b7c454ce361f0c7964628f Mon Sep 17 00:00:00 2001 From: "Zhian N. Kamvar" Date: Fri, 10 Dec 2021 15:43:17 -0800 Subject: [PATCH] block new gem; add default title to reference.md There was an issue where GitHub had adopted the jekyll-titles-from-headings gem in their builds so that pages without default titles would have the first heading adopted as the page title. This commit disables that gem so that unintentional titles do not appear. This will fix https://github.com/carpentries/styles/issues/633 --- bin/boilerplate/_config.yml | 4 ++++ bin/boilerplate/reference.md | 1 + 2 files changed, 5 insertions(+) diff --git a/bin/boilerplate/_config.yml b/bin/boilerplate/_config.yml index ed0df5ea..57b390a2 100644 --- a/bin/boilerplate/_config.yml +++ b/bin/boilerplate/_config.yml @@ -72,6 +72,10 @@ collections: output: true permalink: /:path/index.html +# avoid titles being converted to headings (https://github.com/carpentries/styles/issues/633) +titles_from_headings: + enabled: false + # Set the default layout for things in the episodes collection. defaults: - values: diff --git a/bin/boilerplate/reference.md b/bin/boilerplate/reference.md index 8c826167..ca4459ce 100644 --- a/bin/boilerplate/reference.md +++ b/bin/boilerplate/reference.md @@ -1,4 +1,5 @@ --- +title: "Reference" layout: reference ---