5 body{ Display: Grid; Box-Sizing: Border-Box; Margin: Auto; Padding-Inline:
1REM; Min-Block-Size:
100VH; Inline-Size:
100%; Max-Inline-Size:
45REM; Align-Content: Center; Justify-Content: Stretch; Font-Family: Sans-Serif }
10 const ul = document.body.querySelector(
"nav>ul")
11 fetch(`${location}.jsonld`)
14 for (const topic of meta.items) {
16 .appendChild(document.createElement(
"li"))
17 .appendChild(document.createElement(
"a"))
18 a.href = typeof topic ==
"string" ? topic : topic[
"@id"]
19 a.textContent = topic.subject || topic[
"@id"].split(
"/").pop() } })