Improved embed (Now generated dynamically)
This commit is contained in:
parent
89efb44feb
commit
440591efa9
6 changed files with 27 additions and 9 deletions
src/layouts
|
@ -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;
|
||||
}
|
||||
---
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
@ -19,8 +31,8 @@ const description: string = "A reference for all esports Servants, CEs and alrea
|
|||
<meta name="viewport" content="width=device-width" />
|
||||
<link rel="icon" type="image/ico" href="/fgosite/favicon.ico" />
|
||||
<meta name="generator" content={Astro.generator} />
|
||||
<meta property="og:title" content="Firq TA Reference" />
|
||||
<meta property="og:url" content="https://firq.pages.neshweb.net/fgosite/" />
|
||||
<meta property="og:title" content={title} />
|
||||
<meta property="og:url" content={currPage} />
|
||||
<meta name="description" content={description}/>
|
||||
<meta property="og:description" content={description}/>
|
||||
<meta property="og:image" content="https://firq.pages.neshweb.net/fgosite/link_192.png" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue