-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
allow custom index title #342
Conversation
@SaraMorsy, could you test this PR out and see if it works for your lesson? To your sandpaper: carpentries/sandpaper@allow-custom-title-340 You should be able to add this to your
|
It worked nicely and better than doing it manually. Thank you! |
That's good to hear! You should be able to now remove the |
I actually went and read the commit that introduced the use of custom titles in `index.md` as I should have done in the first instance and a tweak needs to be made to `config.yaml` (see [342](carpentries/sandpaper#342 (comment))) which is included in this commit. However, testing I found that we couldn't have just a YAML header in `index.md` this caused the error... ``` ── Creating homepage ─────────────────────────────────────────────────────────── Error in UseMethod("xml_find_first") : no applicable method for 'xml_find_first' applied to an object of class "xml_document" ``` I've therefore moved the opening paragraph from `learners/setup.md` > `index.md` and it seems to work. Took the opportunity to improve a few other minor things (there was a complaint about the use of an uninformative `here` as the text for a hyperlink). This time I've checked _before_ making a pull request and the pages render as we would like.
This update allows authors to specify a custom
title
yaml item inindex.md
to override the default"Summary and Setup" in the case where a setup is not needed for the lesson.
This will fix #340 and address #339