-
-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
block new gem; add default title to reference.md #634
base: gh-pages
Are you sure you want to change the base?
Conversation
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
I am 👍 to add a default title to reference.md (perhaps also need to drop one from the corresponding file in _layouts) but I am not sure about the |
In the context of a blog, I would agree, but in the context of our lessons---which were developed without this gem in place---it has led to unexpected outcomes. IMO, it would be better to disable this for our lessons going forward as opposed to making lesson maintainers come up with an appropriate heading for their reference pages. |
I agree with @zkamvar about it being unexpected behavior and since it's also not explicit (it's a hidden default) it's hard for maintainers, many of whom are novices with respect to the build systems, so I think it's more inclusive and will lead to better experiences for our maintainers to remove this. |
I guess it depends on how we look at this. If this plugin was disabled in the first place, we would've encountered a similarly-confusing issue -- empty page titles on the reference pages in all of our lessons -- and we could just as well argue that having some default auto-generated page title is better than an empty one (even though neither scenario is what we expect).
I agree that implicit settings can sometimes make things more difficult, but in this specific case I believe this plugin/gem provides a safer behavior when compared to not having a page title at all (this is what Zhian discovered in #633 (comment)). Also, the change that actually fixes the problem is the one where we set page title in the I think the right solution to make things easier for new maintainers is to "document" all the default GitHub Pages settings in our |
To clarify, the comment you reference above does not indicate that the page has no title element, it indicates that the page has no For our lessons, if there is no page title, the title of the page defaults to the site title: Lines 33 to 35 in 6f49049
The first heading of the page follows the same logic: styles/_includes/main_title.html Line 8 in 6f49049
It's not a case of having a title vs. not having a title. It's the case of github trying to solve a problem that the maintainers anticipated and solved years ago.
Why not both? Changing the boilerplate affects new contributions, but does not solve the issue for existing maintainers. Changing both fixes the issue for existing maintainers and gives the new maintainers a clearer path for customisation.
This is out of scope for this particular PR. |
Because disabling the gem doesn't solve the problem nor gives the new maintainers a clearer path for customisation. The solution that fixes the problem is setting the title in the If we look at the files in the In a local test I disabled the gem, made sure that the |
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 #633