Can I add a navigation bar to my Quarto website with theme set to none? #8558
Answered
by
dragonstyle
WillemSleegers
asked this question in
Q&A
-
DescriptionIs it possible to set theme to none and still get a navigation bar, whose styling I can then set myself using CSS? |
Beta Was this translation helpful? Give feedback.
Answered by
dragonstyle
Feb 2, 2024
Replies: 1 comment 16 replies
-
See https://quarto.org/docs/output-formats/html-themes.html. |
Beta Was this translation helpful? Give feedback.
16 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That definitely seems like a reasonable goal, but
theme: none
isn't really all that close to this right now. The entire website envelope is connected to theme, which includes note merely the navbar, but all the other HTML scaffolding. As @mcanouil noted, the structure of the HTML itself and the attributes like classes are all oriented to support bootstrap.I think the right long term direction is actually to emit an intermediary form of HTML which semantically represents the simple structure of the site (e.g. navbars, sidebars, footers, etc) and then have a followup pass which applies bootstrap (or other HTML frameworks) to the semantic HTML but restructuring the DOM and injecting attribu…