Redesign Modern/Tijdreis, contactformulier via CMS, taalbestanden #17
@@ -0,0 +1,19 @@
|
||||
<!-- Contract for the host (or a build step) that fills the two markers in index.html.
|
||||
Values are HTML-encoded. Both markers become empty text when there are no offerings. -->
|
||||
|
||||
<!-- Replaces <!--SLP:OFFERINGS-JSON-LD--> (inside <head>) -->
|
||||
<script type="application/ld+json">
|
||||
{"@context":"https://schema.org","@type":"ItemList","itemListElement":[
|
||||
{"@type":"ListItem","position":1,"item":{"@type":"Offer","name":"Landingspagina","description":"Een snelle landingspagina.","url":"https://slpsoftware.nl/#pakketten","price":"300","priceCurrency":"EUR"}},
|
||||
{"@type":"ListItem","position":2,"item":{"@type":"Offer","name":"Maatwerk","description":"Past er niets bij?","url":"https://slpsoftware.nl/#pakketten"}}
|
||||
]}
|
||||
</script>
|
||||
<!-- price/priceCurrency only when the price label parses (e.g. "€ 300"); never guessed. -->
|
||||
|
||||
<!-- Replaces <!--SLP:OFFERINGS-HTML--> (inside <body>, above #root). Removed by the app at start-up. -->
|
||||
<section id="packages-static" aria-label="Pakketten">
|
||||
<ul>
|
||||
<li><h3>Landingspagina</h3><p>Een snelle landingspagina.</p><p>€ 300 eenmalig</p></li>
|
||||
<li><h3>Maatwerk</h3><p>Past er niets bij?</p><p>Op aanvraag</p></li>
|
||||
</ul>
|
||||
</section>
|
||||
@@ -39,6 +39,7 @@
|
||||
<script src="/theme-init.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<!--SLP:OFFERINGS-HTML-->
|
||||
<div id="root"></div>
|
||||
<script type="module" src="/src/main.tsx"></script>
|
||||
</body>
|
||||
|
||||
@@ -34,6 +34,10 @@ if (!rootElement) {
|
||||
throw new Error('Root element "#root" not found in index.html');
|
||||
}
|
||||
|
||||
// The CMS host may inject a static, crawler-readable packages list (#packages-static, see
|
||||
// index.html); the app renders its own packages, so drop the static copy to avoid duplicates.
|
||||
document.getElementById('packages-static')?.remove();
|
||||
|
||||
createRoot(rootElement).render(
|
||||
<StrictMode>
|
||||
<RouterProvider router={router} />
|
||||
|
||||
Reference in New Issue
Block a user