Replies: 2 comments 14 replies
-
Take a look at the partials, see https://quarto.org/docs/journals/templates.html#html-partials. |
Beta Was this translation helpful? Give feedback.
3 replies
-
Can you share more about what you are doing and in which context ? Single document ? Website ? This is a really simple example and the after-body is after the ---
format:
html:
include-after-body:
text: |
<p>dummy</p>
---
Content <div id="quarto-content" class="page-columns page-rows-contents page-layout-article">
<!-- removed all in between for posting here on GH -->
</div> <!-- /content -->
<p>dummy</p>
</body></html> |
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Hi again, Quarto wizards!
I noted quite a peculiar observation: Quarto docs say that the
include-after-body
will embed the contents of the mentioned file "before the</body>
tag in HTML". However, this is not quite correct, for the included HTML is still wrapped inside the all-encompassing<div id="quarto-content" ...>
. This is unexpected for me, for I want the immediate parent of the embedded HTML to be<body>
. (The#quarto-content
div also makes the HTML to be contained in a grid, which is unwanted by me.)How can I achieve this?
Context: This popped up while I was trying to create a custom footer (in a separate HTML file to be later
include-after-body
ed) as opposed to what is rendered bypage-footer
option. The#quarto-content
div makes my HTML included in a grid, thus making it impossible to have the full viewport width, which is intended for the footer.Interestingly, the
page-footer
does circumvent the above problem by rendering its contents outside of the#quarto-content
div, as desired.Beta Was this translation helpful? Give feedback.
All reactions