+
+ The menus are being updated. Please ask a member of staff.
` + : html``; + + return renderDocument({ + config, + title: null, + bodyClass: 'landing-page', + description: config.brand.tagline, + noindex: false, + script: false, + body: html`${config.brand.tagline}
`} +This is an older menu. See the current menu.
`} + ${renderPages(section, set.manifest.pages)} + + `; + + return renderDocument({ + config, + title: `${set.manifest.label} · ${section.label}`, + bodyClass: 'section-page', + description: config.brand.tagline, + noindex: !input.current, + script: true, + body, + }); +} + +export function renderNotFound(config: SiteConfig, live: readonly SectionConfig[]): Html { + const rows = html``; + + return renderDocument({ + config, + title: 'Not found', + bodyClass: 'landing-page', + description: null, + noindex: true, + script: false, + body: html`That menu does not exist.
+ ${live.length === 0 ? '' : rows} +${'' }); + await store.addPage(set.id, { data: pngBytes('one'), originalName: 'a.jpg' }); + await store.publish(set.id); + + const response = await app.inject({ method: 'GET', url: '/bar/' }); + assert.equal(response.statusCode, 200); + assert.doesNotMatch(response.body, /