Skip to content
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

add templates meant to be overridden #1487

Merged
merged 8 commits into from
Feb 12, 2021
Merged

add templates meant to be overridden #1487

merged 8 commits into from
Feb 12, 2021

Conversation

maelle
Copy link
Collaborator

@maelle maelle commented Feb 8, 2021

At the moments the use of templates is not documented anywhere I think? Edit: it is, in https://pkgdown.r-lib.org/reference/build_site.html#yaml-config-template It'll be in #987 .
I think this change can happen in the original BS3 templates?
I can think of an use case for "in-header.html", not for the other ones but since bookdown has them it's probably useful. 🙂

@maelle
Copy link
Collaborator Author

maelle commented Feb 12, 2021

these are only documented in the draft PR #1490, maybe they could be mentioned in "YAML config - template" of build_site().

R/render.r Outdated Show resolved Hide resolved
inst/templates/layout.html Outdated Show resolved Hide resolved
@hadley
Copy link
Member

hadley commented Feb 12, 2021

Hmmm, the only reason not to do this for BS3 is to provide an additional carrot to push people to upgrade. But I think it'll make the documentation quite a lot more complex, and relatively few people will use it, so it's fine to implement for both BS3 and BS4.

@maelle
Copy link
Collaborator Author

maelle commented Feb 12, 2021

ok so I think no more changes are needed (unless it is not ok to wait until #1490 to have docs)?

@maelle maelle changed the title add templates to layout add templates meant to be overridden Feb 12, 2021
@maelle maelle merged commit 773a3e9 into master Feb 12, 2021
@maelle maelle deleted the in-header-bla branch February 12, 2021 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants