diff --git a/web/src/components/index/navbar.astro b/web/src/components/index/navbar.astro index 8de936b..a1ca78e 100644 --- a/web/src/components/index/navbar.astro +++ b/web/src/components/index/navbar.astro @@ -8,6 +8,10 @@ const links = [ txt: 'photos', lnk: '/photos' }, + { + txt: 'albums', + lnk: '/albums' + }, { txt: 'posts', lnk: '/posts' diff --git a/web/src/pages/albums/index.astro b/web/src/pages/albums/index.astro new file mode 100644 index 0000000..08fe07a --- /dev/null +++ b/web/src/pages/albums/index.astro @@ -0,0 +1,58 @@ +--- +import Base from "@layout/Base"; +import { authPB } from "@utils/pocketbase"; +export const prerender = false + +const pb = await authPB() + +const albums = await pb.collection('albums').getFullList({ + sort: '-created' +}) +--- + + + + + + + +
+
+
+ { + albums.map(a => ( +
+

{a.title}

+

{a.date}

+ {a.title} +
+ )) + } +
+
+
+ + \ No newline at end of file