From 6eaf37c4b7a8be7ecd8e3ec6f2a16febe04f6530 Mon Sep 17 00:00:00 2001 From: Cevdet Arda Haran Date: Fri, 27 Dec 2024 13:25:03 +0100 Subject: [PATCH] Fix: "head" element order With [capo.js](https://github.com/rviscomi/capo.js) re-order "head" element. --- client/public/index.html | 2 +- kumascript/src/live-sample.ts | 2 +- ssr/render.tsx | 56 +++++++++++++++++------------------ 3 files changed, 29 insertions(+), 31 deletions(-) diff --git a/client/public/index.html b/client/public/index.html index 609d297695d4..69213bf73a88 100644 --- a/client/public/index.html +++ b/client/public/index.html @@ -3,8 +3,8 @@ - MDN Web Docs +
diff --git a/kumascript/src/live-sample.ts b/kumascript/src/live-sample.ts index 2dcdc9456539..fbd3840e4273 100644 --- a/kumascript/src/live-sample.ts +++ b/kumascript/src/live-sample.ts @@ -12,6 +12,7 @@ const LIVE_SAMPLE_HTML = ` + <%= sampleTitle %> <% } %> - <%= sampleTitle %> <% if (hasMathML) { %> diff --git a/ssr/render.tsx b/ssr/render.tsx index 74bdc1416418..bd0606b802c4 100644 --- a/ssr/render.tsx +++ b/ssr/render.tsx @@ -157,15 +157,38 @@ export default function render( renderToString( - + + {realPageTitle || "MDN Web Docs"} - +