Highlight the current page in navigation
`page` in a partial is the page being rendered, so a nav partial can compare
each link with `page.path`:
```jsx
// _partials/nav.jsx
() => {
const link = (href, text) =>
{text};
return (
- {link("/", "Home")}
- {link("/articles", "Articles")}
- {link("/about", "About")}
);
}
```
The `startsWith` check keeps "Articles" selected on every post. An empty class
is left out of the output, so unselected links have no `class` attribute. Style
it in your CSS:
```css
nav .selected { font-weight: bold; }
```
Include it in a layout with `{partial("_partials/nav")}`.