mirror of
https://github.com/kogakure/website-astro-stefanimhoff.de.git
synced 2026-02-03 12:05:28 +00:00
fix: align pagination direction
This commit is contained in:
@@ -13,7 +13,7 @@ import { mapping } from '../../mdx-components';
|
||||
export async function getStaticPaths() {
|
||||
const aiArtEntries = await getCollection('ai-art');
|
||||
const numberOfPages = aiArtEntries.length;
|
||||
aiArtEntries.sort(sortBySortKey);
|
||||
aiArtEntries.sort(sortBySortKey).reverse();
|
||||
|
||||
return aiArtEntries.map((entry, index) => ({
|
||||
params: { slug: entry.slug },
|
||||
|
||||
@@ -14,7 +14,7 @@ import { Tag } from '../../components';
|
||||
export async function getStaticPaths() {
|
||||
const projectEntries = await getCollection('projects', ({ data }) => data.showcase === true);
|
||||
const numberOfPages = projectEntries.length;
|
||||
projectEntries.sort(sortBySortKey).reverse();
|
||||
projectEntries.sort(sortBySortKey);
|
||||
|
||||
return projectEntries.map((entry, index) => ({
|
||||
params: { slug: entry.slug },
|
||||
|
||||
@@ -13,7 +13,7 @@ import { mapping } from '../../mdx-components';
|
||||
export async function getStaticPaths() {
|
||||
const sketchnotesEntries = await getCollection('sketchnotes');
|
||||
const numberOfPages = sketchnotesEntries.length;
|
||||
sketchnotesEntries.sort(sortBySortKey);
|
||||
sketchnotesEntries.sort(sortBySortKey).reverse();
|
||||
|
||||
return sketchnotesEntries.map((entry, index) => ({
|
||||
params: { slug: entry.slug },
|
||||
|
||||
Reference in New Issue
Block a user