Closed cderv closed 4 days ago
While at it, there is:
Not the same. I opened this new one because I was looking at the other one and noticed this odd behavior.
I didn't link because not the same problem and so not the same fix.
I believe the source of the bug is that we're forcibly renaming the generated CSS (which has a hash) to a name which doesn't, here:
https://github.com/quarto-dev/quarto-cli/blob/main/src/command/render/pandoc-html.ts#L121
I agree. We should try to name something like boostrap-dark-<hash>.min.css
🤔
This is a follow up on 1.6 fix
The current solution does not apply to dark theme which builds to
bootstrap-dark.min.css
. No hash is used.Add to
about.qmd
this configand this in
_qaurto.yml
Then do
quarto render
Light theme
This now works well. The red font color will only apply to
about.html
, and not the entire websiteDark theme
Switch to dark theme now with toggle. This still doesn't work and the configuration applies to whole website, like initial issue for light theme
When looking at CSS files produced we see no hash is appended.
We probably need to extend the initial fix to dark theming too, to have a
boostrap-dark-<hash>.min.css
.@cscheid you may know how to do it quickly. Otherwise, I can take a shot at this based on #10611