diff options
author | 2022-08-31 20:20:16 +0000 | |
---|---|---|
committer | 2022-08-31 20:20:16 +0000 | |
commit | b5f3c0d735618ca5892b9a274d192103f51d3ba6 (patch) | |
tree | 447fd3b10c9c5a23efe5a88e306b61ad1c820dc4 /examples/docs/src | |
parent | d5bd23d5f41fe9618d705d75724092af49dd5bc5 (diff) | |
download | astro-b5f3c0d735618ca5892b9a274d192103f51d3ba6.tar.gz astro-b5f3c0d735618ca5892b9a274d192103f51d3ba6.tar.zst astro-b5f3c0d735618ca5892b9a274d192103f51d3ba6.zip |
[ci] format
Diffstat (limited to 'examples/docs/src')
-rw-r--r-- | examples/docs/src/components/LeftSidebar/LeftSidebar.astro | 40 |
1 files changed, 19 insertions, 21 deletions
diff --git a/examples/docs/src/components/LeftSidebar/LeftSidebar.astro b/examples/docs/src/components/LeftSidebar/LeftSidebar.astro index 90aae26e2..bd86aecd4 100644 --- a/examples/docs/src/components/LeftSidebar/LeftSidebar.astro +++ b/examples/docs/src/components/LeftSidebar/LeftSidebar.astro @@ -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> |