From 440591efa968626b88d4d677fd39af98a2f8fe06 Mon Sep 17 00:00:00 2001 From: Firq Date: Sun, 5 Mar 2023 23:10:37 +0100 Subject: [PATCH] Improved embed (Now generated dynamically) --- src/layouts/Layout.astro | 20 ++++++++++++++++---- src/pages/about.astro | 4 +++- src/pages/blog.astro | 3 ++- src/pages/index.astro | 3 ++- src/pages/servants.astro | 3 ++- src/pages/ta-collection.astro | 3 ++- 6 files changed, 27 insertions(+), 9 deletions(-) diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 79e187d..e6ba0ae 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -6,10 +6,22 @@ import navdata from '../../static/_navdata.json' export interface Props { title: string; currentpage: string; + descriptionOverride?: string; } -const { currentpage, title } = Astro.props; -const description: string = "A reference for all esports Servants, CEs and already completed TAs that Firq can provide. Contact information available as well."; +const { descriptionOverride, currentpage, title } = Astro.props; +let description; + +if(descriptionOverride === undefined) { + description = "Firqs own site!"; +} else { + description = descriptionOverride; +} + +let currPage = "https://firq.pages.neshweb.net/fgosite/" +if (currentpage !== "home") { + currPage += currentpage; +} --- @@ -19,8 +31,8 @@ const description: string = "A reference for all esports Servants, CEs and alrea - - + + diff --git a/src/pages/about.astro b/src/pages/about.astro index 962067b..2bed31a 100644 --- a/src/pages/about.astro +++ b/src/pages/about.astro @@ -24,9 +24,11 @@ const techologydata = [{ "link": "https://www.typescriptlang.org/", "image": "typescript" },] + +const description = "A summary of the technologies used as well as my contact information. You'll also find disclaimers and thank you notes for the people that helped me."; --- - + This is a small sideproject that I'm creating. First time doing webdev in general, and first project using Typescript. diff --git a/src/pages/blog.astro b/src/pages/blog.astro index cd41f05..d53ec4d 100644 --- a/src/pages/blog.astro +++ b/src/pages/blog.astro @@ -2,9 +2,10 @@ import Layout from '../layouts/Layout.astro'; import BasicSection from '../layouts/basicSection.astro'; +const description = "A placeholder until I get to designing the Blog pages. Future topics will include FGO, TA, Programming, web technologies and more!" --- - + Nothing to see here (yet)
Topics will range from FGO to technologies and programming. diff --git a/src/pages/index.astro b/src/pages/index.astro index a0a6ab1..bed4989 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -5,9 +5,10 @@ import BaseSection from '../layouts/baseSection.astro'; import FavouriteCard from '../components/favouriteCard.astro'; import favouritesdata from '../../static/_favouritesdata.json'; +const description = "The very own page of Firq for providing informating about TA servants, listing past TA achievements and (in the future) hosting a blog for talking about FGO, Programming and other stuff" --- - + {favouritesdata.map((item) => ())} diff --git a/src/pages/servants.astro b/src/pages/servants.astro index 430579b..6061b9d 100644 --- a/src/pages/servants.astro +++ b/src/pages/servants.astro @@ -8,9 +8,10 @@ import servantdata from '../../static/_servantdata.json' import CeCard from '../components/ceCard.astro'; import cedata from '../../static/_cedata.json' +const description = "A list of all the servants and ces that Firq can offer up on support for TA." --- - + {servantdata.map((item) => ())} diff --git a/src/pages/ta-collection.astro b/src/pages/ta-collection.astro index d37f1f3..6ef6c79 100644 --- a/src/pages/ta-collection.astro +++ b/src/pages/ta-collection.astro @@ -5,9 +5,10 @@ import TaSection from '../layouts/taSection.astro'; import TaCard from '../components/taCard.astro'; import tadata from '../../static/_tadata.json' +const description = "A collection of TAs previously completed be Firq." --- - + {tadata.map((item) => ())}