changed around to using .. and import

This commit is contained in:
Firq 2023-03-04 22:59:16 +01:00
parent 80e678ce8d
commit 97454c0685
Signed by: Firq
GPG key ID: 3ACC61C8CEC83C20
5 changed files with 7 additions and 7 deletions

View file

@ -7,8 +7,8 @@ export interface Props {
const {mlb, link, name } = Astro.props;
const ce_img: string = `${Astro.site}/ce/${link}.webp`;
const mlb_ce: string = `${Astro.site}/ce/mlb.webp`
const ce_img: string = `../ce/${link}.webp`;
const mlb_ce: string = `../ce/mlb.webp`
let mlb_image: string = "mlbalign";
if(mlb === "false") {

View file

@ -7,7 +7,7 @@ export interface Props {
const {image, origin, name } = Astro.props;
const img: string = `${Astro.site}/favourites/${image}.webp`;
const img: string = `../favourites/${image}.webp`;
---

View file

@ -1,5 +1,5 @@
---
const headerimg = `${Astro.site}/link_192.png`
import headerimg from "../../static/link_192.png"
---
<header>

View file

@ -7,7 +7,7 @@ export interface Props {
const { image, link, title } = Astro.props;
const icon: string = `background: url('${Astro.site}/ta_icons/${image}.webp')`
const icon: string = `background: url('../ta_icons/${image}.webp')`
---
<a href={link} target="_blank" rel="noopener noreferrer" aria-label={title}>
<article>

View file

@ -10,7 +10,7 @@ export interface Props {
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 favicon_url = `${Astro.site}favicon.ico`
import favicon from "../../static/favicon.ico"
---
<!DOCTYPE html>
@ -18,7 +18,7 @@ const favicon_url = `${Astro.site}favicon.ico`
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<link rel="icon" type="image/ico" href={favicon_url} />
<link rel="icon" type="image/ico" href={favicon} />
<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/" />