Patching weird // issue
This commit is contained in:
parent
c5af572d38
commit
d08a7e86c7
4 changed files with 12 additions and 12 deletions
|
@ -8,4 +8,5 @@ export default defineConfig({
|
||||||
publicDir: 'static',
|
publicDir: 'static',
|
||||||
site: 'https://fgo-ta.com/',
|
site: 'https://fgo-ta.com/',
|
||||||
integrations: [sitemap()],
|
integrations: [sitemap()],
|
||||||
|
trailingSlash: "never"
|
||||||
})
|
})
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "fgo-ta-com-website",
|
"name": "fgo-ta-com-website",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "0.1.7",
|
"version": "0.1.8",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "astro dev",
|
"dev": "astro dev",
|
||||||
"start": "astro dev",
|
"start": "astro dev",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
export interface Props {
|
export interface Props {
|
||||||
url: string | undefined
|
url: string
|
||||||
title: string
|
title: string
|
||||||
questReleaseDate: string
|
questReleaseDate: string
|
||||||
shortdescription: string
|
shortdescription: string
|
||||||
|
|
|
@ -1,20 +1,19 @@
|
||||||
---
|
---
|
||||||
import Layout from '../layouts/Layout.astro'
|
import Layout from '../../layouts/Layout.astro'
|
||||||
import QuestListing from '../components/questListing.astro'
|
import QuestListing from '../../components/questListing.astro'
|
||||||
import DatabaseSection from '../layouts/databaseSection.astro'
|
import DatabaseSection from '../../layouts/databaseSection.astro'
|
||||||
import { findSlug } from '../utils/slugTools'
|
import { findSlug } from '../../utils/slugTools'
|
||||||
import type { filedata } from '../types/ta'
|
import type { filedata } from '../../types/ta'
|
||||||
|
|
||||||
const description =
|
const description = 'FGO NA TA Database'
|
||||||
'My own small blog. Topics include FGO, TA, Programming, web technologies and more!'
|
|
||||||
|
|
||||||
const questInfo = []
|
const questInfo = []
|
||||||
const fulldata = import.meta.glob<{ default: filedata }>(
|
const fulldata = import.meta.glob<{ default: filedata }>(
|
||||||
`../content/data/*.json`
|
`../../content/data/*.json`
|
||||||
)
|
)
|
||||||
|
|
||||||
for (const [key, value] of Object.entries(fulldata)) {
|
for (const [key, value] of Object.entries(fulldata)) {
|
||||||
const url = `${Astro.url}/${findSlug(key)}`
|
const url = `/database/${findSlug(key)}`
|
||||||
questInfo.push({
|
questInfo.push({
|
||||||
...(await value())['default'].info,
|
...(await value())['default'].info,
|
||||||
url: url,
|
url: url,
|
||||||
|
@ -27,7 +26,7 @@ questInfo.sort(
|
||||||
---
|
---
|
||||||
|
|
||||||
<Layout
|
<Layout
|
||||||
title="TA Database"
|
title="FGO NA TA Database"
|
||||||
currentpage="database"
|
currentpage="database"
|
||||||
descriptionOverride={description}
|
descriptionOverride={description}
|
||||||
>
|
>
|
Loading…
Reference in a new issue