Skip to content

Commit

Permalink
opengraph
Browse files Browse the repository at this point in the history
  • Loading branch information
velzie committed Apr 20, 2024
1 parent 9186560 commit f4375a4
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/layouts/Base.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,22 @@ import "styles/style.css";
import Sidebar from "components/Sidebar.astro";
const { headings } = Astro.props;
import { ViewTransitions } from "astro:transitions";
const title = headings ? headings[0].text + " | dreamland docs" : "404 | dreamland docs";
---

<html lang="en" transition:animate="none">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<meta name="generator" content={Astro.generator} />
<title>{headings ? headings[0].text + " | dreamland docs" : "404 | dreamland docs"}</title>


<meta property="og:url" content="https://dreamland.js.org" />
<meta property="og:type" content="website" />
<meta property="og:title" content={title} />
<meta property="og:description" content="Documentation for dreamland, a modern, fast, and lightweight JavaScript framework for building web applications that work." />
<title>{title}</title>
<ViewTransitions />
</head>
<body>
Expand Down

0 comments on commit f4375a4

Please sign in to comment.