chore: myriad fixes + book year pages
This commit is contained in:
parent
3ab6f77a69
commit
aec8471b06
45 changed files with 508 additions and 293 deletions
|
@ -2,14 +2,15 @@
|
|||
import { getCollection } from 'astro:content';
|
||||
import { IconStar } from '@tabler/icons-react';
|
||||
import { fetchAllPosts } from "@data/posts.js";
|
||||
import { fetchGlobalData } from '@utils/data/global/index.js';
|
||||
import Layout from "@layouts/Layout.astro";
|
||||
import Paginator from '@components/nav/Paginator.astro';
|
||||
import { md } from '@utils/helpers.js';
|
||||
import { md } from '@utils/helpers/general.js';
|
||||
import { DateTime } from 'luxon';
|
||||
|
||||
const posts = await fetchAllPosts();
|
||||
const { page } = Astro.props;
|
||||
const { globals } = Astro.locals;
|
||||
const { globals } = await fetchGlobalData(Astro);
|
||||
const currentUrl = Astro.url.pathname;
|
||||
|
||||
const currentPage = Astro.params.page ? parseInt(Astro.params.page, 10) : 1;
|
||||
|
|
Reference in a new issue