forked from wintercg/www
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add OG images and meta description (wintercg#13)
- Loading branch information
1 parent
45ffffd
commit 5649624
Showing
2 changed files
with
26 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
/** @jsxFrag Fragment */ | ||
import { serve } from "https://deno.land/[email protected]/http/server.ts"; | ||
import { serveDir } from "https://deno.land/[email protected]/http/file_server.ts"; | ||
import { h, ssr } from "https://crux.land/[email protected]"; | ||
import { Fragment, h, Helmet, ssr } from "https://crux.land/[email protected]"; | ||
|
||
import work from "./data/work.json" assert { type: "json" }; | ||
|
||
|
@@ -244,11 +244,29 @@ function Faq() { | |
); | ||
} | ||
const DESCRIPTION = | ||
"The Web-interoperable Runtimes Community Group aims to provide a space for JS runtimes to collaborate on API interoperability."; | ||
function Layout(props) { | ||
return ( | ||
<div class="mx-auto px-4 py-8 max-w-screen-md"> | ||
{props.children} | ||
</div> | ||
<> | ||
<Helmet> | ||
<title>WinterCG</title> | ||
<link | ||
rel="shortcut icon" | ||
href="/static/logo.svg" | ||
type="image/svg+xml" | ||
/> | ||
<meta name="description" content={DESCRIPTION} /> | ||
<meta name="og:title" content="WinterCG" /> | ||
<meta name="og:description" content={DESCRIPTION} /> | ||
<meta name="og:image" content="https://wintercg.org/static/cover.png" /> | ||
<meta name="og:url" content="https://wintercg.org" /> | ||
</Helmet> | ||
<div class="mx-auto px-4 py-8 max-w-screen-md"> | ||
{props.children} | ||
</div> | ||
</> | ||
); | ||
} | ||
|
@@ -388,7 +406,10 @@ function Footer() { | |
<footer class="mt-16 text-center border-t-1 border-gray-100 p-4"> | ||
<p class="text-sm text-gray-600"> | ||
Copyright © WinterCG. This work is licensed under the{" "} | ||
<a href="http:https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document"> | ||
<a | ||
href="http:https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document" | ||
class="hover:underline" | ||
> | ||
W3C Software and Document License | ||
</a>. | ||
</p> | ||
|
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.