Title: fix: add page custom code to the head section by ysamcode · Pull Request #533 · ycode/ycode · GitHub
Open Graph Title: fix: add page custom code to the head section by ysamcode · Pull Request #533 · ycode/ycode
X Title: fix: add page custom code to the head section by ysamcode · Pull Request #533 · ycode/ycode
Description: Summary Page Header custom code was rendered from the page body, so inline scripts never reached . Inject that code from the site layout into the real document head instead. Changes Resolve the current page's Header custom code in the site layout and render it inside Forward x-pathname on the request so the layout can identify the page Stop injecting page Header code from the page body on self-hosted sites to avoid duplicates Add path-parsing and head-HTML unit tests Test plan Add to a page's Header custom code, publish, and View Source — the script should appear inside , not Confirm Body custom code still appears before Repeat on a nested slug page and a preview URL Add a or