[ci] format

This commit is contained in:
Jutanium 2022-08-31 20:20:16 +00:00 committed by fredkbot
parent d5bd23d5f4
commit b5f3c0d735
2 changed files with 20 additions and 23 deletions

View file

@ -14,27 +14,25 @@ const sidebar = SIDEBAR[langCode];
<nav aria-labelledby="grid-left">
<ul class="nav-groups">
{
Object.entries(sidebar).map(([header, children]) => (
<li>
<div class="nav-group">
<h2>{header}</h2>
<ul>
{children.map((child) => {
const url = Astro.site?.pathname + child.link;
return (
<li class="nav-link">
<a href={url} aria-current={currentPageMatch === child.link ? 'page' : false}>
{child.text}
</a>
</li>
);
})}
</ul>
</div>
</li>
))
}
{Object.entries(sidebar).map(([header, children]) => (
<li>
<div class="nav-group">
<h2>{header}</h2>
<ul>
{children.map((child) => {
const url = Astro.site?.pathname + child.link;
return (
<li class="nav-link">
<a href={url} aria-current={currentPageMatch === child.link ? 'page' : false}>
{child.text}
</a>
</li>
);
})}
</ul>
</div>
</li>
))}
</ul>
</nav>

View file

@ -10,8 +10,7 @@
"astro": "astro",
"server": "node server/server.mjs"
},
"devDependencies": {
},
"devDependencies": {},
"dependencies": {
"astro": "^1.1.1",
"svelte": "^3.48.0",