Release v0.19.0. See the `## [0.19.0] — 2026-09-29` section of [CHANGELOG.md](https://github.com/ralksta/immich-folio/blob/dev/CHANGELOG.md) for the full list. Highlights: client proofing links (#683), custom content pages (#738), asset picker search (#740), concurrent-edit detection (#742), env-locked settings (#739), an accessibility baseline (#741), three security fixes with advisories (#737, #755, #759), and a pre-release quality pass (#780–#797). --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: ralksta <ralksta@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Claude Opus 5 <noreply@anthropic.com> Co-authored-by: Ralf <rohlenbo79@gmail.com> Co-authored-by: Paul Thies <110185070+ImScheinox@users.noreply.github.com> Co-authored-by: lancetm714 <108419425+lancetm714@users.noreply.github.com> Co-authored-by: Lance Martin <lancetaylor95@gmail.com>
42 lines
1.2 KiB
TypeScript
42 lines
1.2 KiB
TypeScript
/**
|
|
* SubpageNav — server component that renders the header's navigation links
|
|
* after Home: subpages and content pages, standalone albums, Journal, About,
|
|
* Map (`lib/siteNav.ts`, shared with the home page hero), then any external
|
|
* links.
|
|
*
|
|
* Subpages and content pages (#722) share one order, the order of the
|
|
* `subpages:` list in gallery.yaml, where a page appears as `- page: <slug>`.
|
|
*/
|
|
|
|
import { NavLink } from './NavLink';
|
|
import { getConfig } from '@/lib/config';
|
|
import { loadSiteNav } from '@/lib/siteNav.server';
|
|
|
|
export async function SubpageNav() {
|
|
const links = await loadSiteNav();
|
|
// EXPERIMENTAL: external nav links from settings.yaml, appended after the
|
|
// internal entries. Sanitised to http(s) in getConfig().
|
|
const navLinks = getConfig().navLinks;
|
|
|
|
return (
|
|
<>
|
|
{links.map((item) => (
|
|
<NavLink key={item.key} href={item.href}>
|
|
{item.label}
|
|
</NavLink>
|
|
))}
|
|
{navLinks.map((link) => (
|
|
<a
|
|
key={link.url}
|
|
href={link.url}
|
|
className="header__nav-link header__nav-link--external"
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
>
|
|
{link.label}
|
|
</a>
|
|
))}
|
|
</>
|
|
);
|
|
}
|