Actually, I don't post that often

This commit is contained in:
MeowcaTheoRange 2024-04-02 18:04:46 -05:00
parent 4cef78e056
commit 6900f165f6
4 changed files with 4 additions and 4 deletions

View file

@ -14,7 +14,7 @@ export default async function Home({
}) { }) {
const curPage = parseInt(searchParams?.page) || 1; const curPage = parseInt(searchParams?.page) || 1;
const blogs = await fetch(`https://blog.abtmtr.link/api/collections/mtr/posts?page=${curPage}`, { cache: 'no-store' }).then(x=>x.json()); const blogs = await fetch(`https://blog.abtmtr.link/api/collections/mtr/posts?page=${curPage}`, { next: { revalidate: 3600 } }).then(x=>x.json());
return ( return (
<MainLayout currentPage="/blog/" title="Blog" subtitle="via blog.abtmtr.link"> <MainLayout currentPage="/blog/" title="Blog" subtitle="via blog.abtmtr.link">
<img className="headerImage" src="/headers/blog.png" alt="BLOG"></img> <img className="headerImage" src="/headers/blog.png" alt="BLOG"></img>

View file

@ -12,7 +12,7 @@ export default async function Home({
}) { }) {
const curPage = parseInt(searchParams?.page) || 1; const curPage = parseInt(searchParams?.page) || 1;
const charblogs = await fetch(`https://blog.abtmtr.link/api/collections/characters/posts?page=${curPage}`).then(x=>x.json()); const charblogs = await fetch(`https://blog.abtmtr.link/api/collections/characters/posts?page=${curPage}`, { next: { revalidate: 1800 } }).then(x=>x.json());
const characters = charblogs.data.posts.map((post:{body:string}) => JSON.parse(post.body.replace(/[“”]/g, "\""))); const characters = charblogs.data.posts.map((post:{body:string}) => JSON.parse(post.body.replace(/[“”]/g, "\"")));
return ( return (

View file

@ -13,7 +13,7 @@ export default async function Home({
}) { }) {
const curPage = parseInt(searchParams?.page) || 1; const curPage = parseInt(searchParams?.page) || 1;
const blogs = await fetch(`https://img.abtmtr.link/api/collections/mtr/posts?page=${curPage}`, { cache: 'no-store' }).then(x=>x.json()); const blogs = await fetch(`https://img.abtmtr.link/api/collections/mtr/posts?page=${curPage}`, { next: { revalidate: 3600 } }).then(x=>x.json());
return ( return (
<MainLayout currentPage="/gallery/" title="Gallery" subtitle="via img.abtmtr.link"> <MainLayout currentPage="/gallery/" title="Gallery" subtitle="via img.abtmtr.link">
<img className="headerImage" src="/headers/gallery.png" alt="GALLERY"></img> <img className="headerImage" src="/headers/gallery.png" alt="GALLERY"></img>

View file

@ -12,7 +12,7 @@ export default async function Home({
} }
}) { }) {
const curPage = parseInt(searchParams?.page) || 1; const curPage = parseInt(searchParams?.page) || 1;
const blogs = await fetch(`https://blog.abtmtr.link/api/collections/stories/posts?page=${curPage}`, { cache: 'no-store' }).then(x=>x.json()); const blogs = await fetch(`https://blog.abtmtr.link/api/collections/stories/posts?page=${curPage}`, { next: { revalidate: 3600 } }).then(x=>x.json());
return ( return (
<MainLayout currentPage="/stories/" title="Stories" subtitle="via blog.abtmtr.link"> <MainLayout currentPage="/stories/" title="Stories" subtitle="via blog.abtmtr.link">
<img className="headerImage" src="/headers/stories.png" alt="STORIES"></img> <img className="headerImage" src="/headers/stories.png" alt="STORIES"></img>