summaryrefslogtreecommitdiff
path: root/examples/docs/src/components/LeftSidebar/LeftSidebar.astro
diff options
context:
space:
mode:
authorGravatar Princesseuh <Princesseuh@users.noreply.github.com> 2022-11-08 18:39:22 +0000
committerGravatar fredkbot <fred+astrobot@astro.build> 2022-11-08 18:39:22 +0000
commitdcdeca56acb6c03d4868ece51ef4611e7598e270 (patch)
treef8731cc4f82f335c00a4a9a7f4b573d277b84a3e /examples/docs/src/components/LeftSidebar/LeftSidebar.astro
parent0dcdc6fb1e6160c8a225a65c4810f565e2b673b5 (diff)
downloadastro-dcdeca56acb6c03d4868ece51ef4611e7598e270.tar.gz
astro-dcdeca56acb6c03d4868ece51ef4611e7598e270.tar.zst
astro-dcdeca56acb6c03d4868ece51ef4611e7598e270.zip
[ci] format
Diffstat (limited to 'examples/docs/src/components/LeftSidebar/LeftSidebar.astro')
-rw-r--r--examples/docs/src/components/LeftSidebar/LeftSidebar.astro40
1 files changed, 21 insertions, 19 deletions
diff --git a/examples/docs/src/components/LeftSidebar/LeftSidebar.astro b/examples/docs/src/components/LeftSidebar/LeftSidebar.astro
index 33af79463..33433f5be 100644
--- a/examples/docs/src/components/LeftSidebar/LeftSidebar.astro
+++ b/examples/docs/src/components/LeftSidebar/LeftSidebar.astro
@@ -16,25 +16,27 @@ 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>