Skip to content

Commit

Permalink
block new gem; add default title to reference.md
Browse files Browse the repository at this point in the history
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 carpentries#633
  • Loading branch information
zkamvar committed Dec 10, 2021
1 parent 6f49049 commit 94cd87f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/boilerplate/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions bin/boilerplate/reference.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
title: "Reference"
layout: reference
---

Expand Down

0 comments on commit 94cd87f

Please sign in to comment.