Replies: 1 comment 1 reply
-
Unfortunately, when you take over the partial, CSS/HTML customisation is on you. Quarto creates an enveloppe for its documents and provides partials to tweak parts of it without necessarily having to take over everything. Source code of the partials and the template is described in the documentation: https://quarto.org/docs/journals/templates.html#html-partials |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
Hello everyone,
I wanted to make a few tweeks to the title block of some html output and decided to try my hand at template partials for the first time.
The starting point can be found here https://p-vllnva.github.io/trade_lunch. There are two things I would like to change, I would prefer to have the logo above the presentation and to have the date within the banner.
I tried playing around with the styles.css file (changing the height and background position in
.quarto-title-block .quarto-title-banner {}
) with mixed success. The problem is that the content is not sized dynamically, so the logo and the title end up superposed with different size of displays.I then tried to add a title-block.html partial which almost works except that the banner does not span to full width of the document (instead it spans the width of its parent element). The problems seems to be that on the current version, the title block is not included in the
<main>
tag (#quarto-document-content) while it is after I include the custom title-block partial.If you have any idea on how to fix it or on what causes this behaviour, I would love to read it.
Below is an example to reproduce the behaviour.
The .qmd looks looks like this
with the following css:
and title-block partial:
Many thanks.
Beta Was this translation helpful? Give feedback.
All reactions