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