Skip to content

Commit

Permalink
add meta tags and social image (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulacarneiro authored Mar 3, 2023
1 parent e238b4c commit 40d6f75
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 10 deletions.
Binary file added public/social-image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
57 changes: 48 additions & 9 deletions src/layouts/Layout.astro
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
---
export interface Props {
title: string;
}
const { title } = Astro.props;
import image from "/social-image.png";
const description = "FVM event indexer";
const title = "Dora, the TipsetExplorer";
---

<!DOCTYPE html>
Expand All @@ -12,19 +10,60 @@ const { title } = Astro.props;
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width"
content="width=device-width, initial-scale=1.0"
/>
<meta
name="generator"
content={Astro.generator}
/>
<link
rel="icon"
type="image/svg+xml"
href="/favicon.svg"
/>
<title>Dora, the TipsetExplorer</title>
<meta
name="generator"
content={Astro.generator}
name="description"
content={description}
/>
<meta
name="keywords"
content="tipset, fvm, fevm, event indexer, filecoin, blockchain, handlers"
/>
<meta
name="og:title"
content={title}
/>
<meta
name="og:description"
content="Crypto pension fund"
/>
<meta
name="og:image"
content={image}
/>
<meta
property="og:title"
content={title}
/>
<meta
name="twitter:title"
content={title}
/>
<meta
name="twitter:description"
content={description}
/>
<meta
name="twitter:image"
content={image}
/>
<meta
name="twitter:card"
content="summary_large_image"
/>
<title>{title}</title>
</head>

<body class="bg-black text-white font-poppins antialiased selection:bg-[rgba(254,216,102,0.7)]">
<slot />
</body>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Layout from "../layouts/Layout.astro";
import "../styles/global.css";
---

<Layout title="Dora, the TipsetExplorer">
<Layout>
<Header />
<main class="px-4 sm:px-16">
<Hero />
Expand Down

0 comments on commit 40d6f75

Please sign in to comment.