Skip to content

fix: keep wide-layout.js in place on a repeated configuration pass - #474

Merged
has2k1 merged 1 commit into
mainfrom
refactor/wide-layout-position
Oct 29, 2026
Merged

has2k1 merged 1 commit into
mainfrom
refactor/wide-layout-position

Conversation

@has2k1

@has2k1 has2k1 commented Oct 29, 2026

Copy link
Copy Markdown
Collaborator

This PR keeps the wide-layout.js loader where the first site configuration pass puts it in include-after-body. A build runs that pass twice, and each pass removed the loader and appended it again, so on every site with wide layout enabled (the default) the second pass moved it after all the other page scripts. Nothing else in _quarto.yml differs between the two passes.

A build runs the site configuration pass twice. Each pass previously
removed `wide-layout.js` from `include-after-body` and appended it
again. The second pass moved the loader to the end and changed the
order in which scripts ran on the page.

Replace an existing loader at its current position and append a loader
only when it is missing. The first pass is unchanged. Disabling wide
layout still removes stale entries.
@github-actions

Copy link
Copy Markdown

📚 Preview this PR's docs locally

Fetch the just-built site and open it in your browser:

# this exact build
great-docs preview --run 40915660867

# or always the latest build for this PR
great-docs preview --pr 474
Auth & tips
  • Requires great-docs: pip install great-docs (or run via pipx/uvx).
  • Auth: run gh auth login then add --use-gh, or set GITHUB_TOKEN (needs Actions: read).
  • Jump to a page: add --path reference/index.html.
  • Latest vs exact: --pr <n> grabs the newest build; --run <id> pins this one.
  • Re-download: --refresh ignores the local cache.

@has2k1
has2k1 merged commit 6d7ffa2 into main Oct 29, 2026
9 checks passed
@has2k1
has2k1 deleted the refactor/wide-layout-position branch October 29, 2026 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant