-
Notifications
You must be signed in to change notification settings - Fork 321
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
Make pkgdown add class=col-md-9
in articles
#2045
Comments
In other words: This test pkgdown/tests/testthat/test-build-articles.R Lines 132 to 134 in ae7363f
passes, even if we do toc: true here
|
Related (sort of) https://twitter.com/jimhester_/status/1488953531642040327 I wonder whether the problem comes from using Pandoc vs Mustache templating. #2048 (pkgdown does not use rmarkdown's toc at all). |
@mrcaseb can you show what the problem is? |
It started in this thread with the desire to make the main content of pkgdown sites wider on bigger screens. https://twitter.com/jimhester_/status/1488953531642040327?s=20&t=gsW4dxCbUHnRUkqDwspOTA I've added this css to one of my pkgdown sites It works fine for the homepage, or for the changelog But it fails for an article. The toc is at the end of the page on that article site. |
Thanks for that summary. Can you please now connect it to why |
The article pages on my websites are fixed, thanks @hadley! |
There is this line in the content-article.html template that should be able to add the
col-md-9
class tomain
but I am not able to actually toggle it.pkgdown/inst/BS5/templates/content-article.html
Line 6 in ae7363f
I can't find any BS5 pkgdown site that uses that class for the main content in articles.
Sorry, it's hard to provide a reprex but it seems like
toc: true
in the article meta data doesn't have any effect.The text was updated successfully, but these errors were encountered: