Patching weird // issue
All checks were successful
/ checking (push) Successful in 19s
/ build-site (push) Successful in 2m38s
/ release (push) Successful in 27s

This commit is contained in:
Firq 2024-01-03 00:59:59 +01:00
parent c5af572d38
commit d08a7e86c7
Signed by: Firq
GPG key ID: 3ACC61C8CEC83C20
4 changed files with 12 additions and 12 deletions

View file

@ -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"
}) })

View file

@ -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",

View file

@ -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

View file

@ -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}
> >