---
import { metadata } from '../include/SiteConfig.js';

const { page, rel } = Astro.props;
const skip = page === null || page === undefined || page.data.sequence < 0;
const title = skip ? null : page.data.titles.join(' > ');
---

{
  !skip && (
    <a href={`/${metadata.version}${page.data.path}`} title={title} rel={rel}>
      <slot />
    </a>
  )
}
