diff options
Diffstat (limited to 'examples/hackernews/src/components/Nav.astro')
-rw-r--r-- | examples/hackernews/src/components/Nav.astro | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/examples/hackernews/src/components/Nav.astro b/examples/hackernews/src/components/Nav.astro index 10bf0f899..7eeba2865 100644 --- a/examples/hackernews/src/components/Nav.astro +++ b/examples/hackernews/src/components/Nav.astro @@ -15,11 +15,13 @@ const links: Link[] = [ <header> <nav aria-label="Main menu"> - {links.map(({ href, text }) => ( - <a href={href} aria-current={href === Astro.url.pathname ? 'page' : undefined}> - <strong>{text}</strong> - </a> - ))} + { + links.map(({ href, text }) => ( + <a href={href} aria-current={href === Astro.url.pathname ? 'page' : undefined}> + <strong>{text}</strong> + </a> + )) + } <a class="github" href="http://github.com/withastro/astro" target="_blank" rel="noreferrer"> Built with Astro </a> |