Skip to content
Snippets Groups Projects
Commit 06709c1e authored by Moritz Stückler's avatar Moritz Stückler :cowboy:
Browse files

fix: base url usage

parent eea85f70
No related branches found
No related tags found
No related merge requests found
Pipeline #9779 passed
......@@ -2,7 +2,6 @@
import "@fchh/fcos-suite-ui/dist/style.css";
import "@styles/base.css";
// import { SubFooter } from "@fchh/fcos-suite-ui";
import { getBaseUrl } from "@utils";
import { Footer } from "@components";
import { HEAD_INJECT, SITE_TITLE } from "@config";
export interface Props {
......@@ -14,8 +13,6 @@ export interface Props {
image?: string;
}
const baseUrl = getBaseUrl();
const { title, hideFooter, bodyClasses, teaser, image } = Astro.props as Props;
---
......@@ -24,15 +21,14 @@ const { title, hideFooter, bodyClasses, teaser, image } = Astro.props as Props;
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/png" href={`${baseUrl}favicon.png`} />
<link rel="icon" type="image/png" href={`/favicon.png`} />
<meta name="generator" content={Astro.generator} />
<title>{title} - {SITE_TITLE}</title>
<meta property="og:title" content={title} />
<meta property="og:url" content={Astro.url} />
<meta property="og:locale" content="de_DE" />
{image && <meta property="og:image" content={`${baseUrl}${image}`} />}
{image && <meta property="og:image" content={`/${image}`} />}
{teaser && <meta property="og:description" content={teaser} />}
{baseUrl && <base href={baseUrl} />}
<Fragment set:html={HEAD_INJECT} />
</head>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment