[ci] format
This commit is contained in:
parent
d5bd23d5f4
commit
b5f3c0d735
2 changed files with 20 additions and 23 deletions
|
@ -14,27 +14,25 @@ const sidebar = SIDEBAR[langCode];
|
||||||
|
|
||||||
<nav aria-labelledby="grid-left">
|
<nav aria-labelledby="grid-left">
|
||||||
<ul class="nav-groups">
|
<ul class="nav-groups">
|
||||||
{
|
{Object.entries(sidebar).map(([header, children]) => (
|
||||||
Object.entries(sidebar).map(([header, children]) => (
|
<li>
|
||||||
<li>
|
<div class="nav-group">
|
||||||
<div class="nav-group">
|
<h2>{header}</h2>
|
||||||
<h2>{header}</h2>
|
<ul>
|
||||||
<ul>
|
{children.map((child) => {
|
||||||
{children.map((child) => {
|
const url = Astro.site?.pathname + child.link;
|
||||||
const url = Astro.site?.pathname + child.link;
|
return (
|
||||||
return (
|
<li class="nav-link">
|
||||||
<li class="nav-link">
|
<a href={url} aria-current={currentPageMatch === child.link ? 'page' : false}>
|
||||||
<a href={url} aria-current={currentPageMatch === child.link ? 'page' : false}>
|
{child.text}
|
||||||
{child.text}
|
</a>
|
||||||
</a>
|
</li>
|
||||||
</li>
|
);
|
||||||
);
|
})}
|
||||||
})}
|
</ul>
|
||||||
</ul>
|
</div>
|
||||||
</div>
|
</li>
|
||||||
</li>
|
))}
|
||||||
))
|
|
||||||
}
|
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
|
|
@ -10,8 +10,7 @@
|
||||||
"astro": "astro",
|
"astro": "astro",
|
||||||
"server": "node server/server.mjs"
|
"server": "node server/server.mjs"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {},
|
||||||
},
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"astro": "^1.1.1",
|
"astro": "^1.1.1",
|
||||||
"svelte": "^3.48.0",
|
"svelte": "^3.48.0",
|
||||||
|
|
Loading…
Reference in a new issue