parent
0afe61add2
commit
2af757d5bd
12 changed files with 83 additions and 9 deletions
src/pages
|
@ -10,4 +10,4 @@ export async function getStaticPaths() {
|
|||
const { slug } = Astro.params
|
||||
---
|
||||
|
||||
<TaShowcaseLayout collectionKey={slug} />
|
||||
<TaShowcaseLayout collection="taInfoData" collectionKey={slug} baseurl="database"/>
|
||||
|
|
|
@ -19,7 +19,7 @@ fulldata.sort(
|
|||
descriptionOverride={description}
|
||||
>
|
||||
<DatabaseSection title="FGO NA TA Database">
|
||||
{fulldata.map((quest) => <QuestListing { ...{...quest.data.info, slug: quest.id} } />)}
|
||||
{fulldata.map((quest) => <QuestListing { ...{...quest.data.info, slug: quest.id} } baseurl="database" />)}
|
||||
</DatabaseSection>
|
||||
</Layout>
|
||||
|
||||
|
|
13
src/pages/teslafest/[slug].astro
Normal file
13
src/pages/teslafest/[slug].astro
Normal file
|
@ -0,0 +1,13 @@
|
|||
---
|
||||
import { getCollection } from 'astro:content';
|
||||
import TaShowcaseLayout from '../../layouts/taShowcaseLayout.astro'
|
||||
|
||||
export async function getStaticPaths() {
|
||||
const fulldata = (await getCollection('teslafest')).map((data) => data.id)
|
||||
return fulldata.map((slug) => ({ params: { slug } }))
|
||||
}
|
||||
|
||||
const { slug } = Astro.params
|
||||
---
|
||||
|
||||
<TaShowcaseLayout collection="teslafest" collectionKey={slug} baseurl="teslafest" />
|
26
src/pages/teslafest/index.astro
Normal file
26
src/pages/teslafest/index.astro
Normal file
|
@ -0,0 +1,26 @@
|
|||
---
|
||||
import { getCollection } from 'astro:content';
|
||||
import Layout from '../../layouts/Layout.astro'
|
||||
import QuestListing from '../../components/questListing.astro'
|
||||
import DatabaseSection from '../../layouts/databaseSection.astro'
|
||||
|
||||
const description = 'NA Teslafest'
|
||||
const fulldata = await getCollection('teslafest')
|
||||
|
||||
fulldata.sort(
|
||||
(a, b) => b.data.info.releaseDate.valueOf() - a.data.info.releaseDate.valueOf() || b.data.info.releaseNumber - a.data.info.releaseNumber
|
||||
)
|
||||
|
||||
---
|
||||
|
||||
<Layout
|
||||
title="Teslafest - FGO TA"
|
||||
currentpage="teslafest"
|
||||
descriptionOverride={description}
|
||||
>
|
||||
<DatabaseSection title="Teslafest - All Quests">
|
||||
{fulldata.map((quest) => <QuestListing { ...{...quest.data.info, slug: quest.id} } baseurl="teslafest" />)}
|
||||
</DatabaseSection>
|
||||
</Layout>
|
||||
|
||||
<style></style>
|
Loading…
Add table
Add a link
Reference in a new issue