-
-
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.
A centralization of data, then dispersion.
- Loading branch information
Showing
16 changed files
with
177 additions
and
40 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
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
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import type { FunctionalComponent } from "preact"; | ||
import Title from "./Title.tsx"; | ||
import { description, logoAlt, logoSvgUrl, siteName } from "../site.ts"; | ||
|
||
interface Props { | ||
title?: string | undefined; | ||
desc?: string | undefined; | ||
} | ||
|
||
const Meta: FunctionalComponent<Props> = ({ title, desc }) => { | ||
desc ??= description; | ||
title ??= siteName; | ||
|
||
return ( | ||
<> | ||
<Title title={title} /> | ||
<meta property="og:image" content={logoSvgUrl} key="og:i" /> | ||
<meta property="og:image:secure_url" content={logoSvgUrl} key="og:si" /> | ||
<meta property="og:image:alt" content={logoAlt} key="og:ai" /> | ||
<meta property="og:title" content="Home" key="og:title" /> | ||
<meta property="og:url" content="/" key="og:url" /> | ||
<meta property="og:description" content={desc} key="og:desc" /> | ||
<meta property="og:site_name" content={siteName} /> | ||
<meta property="og:locale" content="en_US" /> | ||
<meta property="og:type" content="website" /> | ||
<meta property="twitter:card" content="summary" key="t:card" /> | ||
<meta property="twitter:title" content="Home" key="t:title" /> | ||
<meta property="twitter:description" content={desc} key="t:desc" /> | ||
<meta property="twitter:image" content="/logo.svg" key="t:i" /> | ||
<meta property="twitter:image:alt" content={logoAlt} key="t:ai" /> | ||
</> | ||
); | ||
}; | ||
|
||
export { Meta as default }; |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import type { FunctionalComponent } from "preact"; | ||
import { makeTitle } from "../site.ts"; | ||
|
||
interface Props { | ||
title: string; | ||
} | ||
|
||
const Title: FunctionalComponent<Props> = ({ title }) => { | ||
return <title>{makeTitle(title)}</title>; | ||
}; | ||
|
||
export { Title as default }; |
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
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
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
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
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
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
const slogan = "The Truth About Going Green"; | ||
const description = | ||
"Why Switch is an informative website about green/green energy."; | ||
const siteName = "Why Switch?"; | ||
|
||
function makeTitle(pageTitle: string): string { | ||
return `${pageTitle} | ${siteName}`; | ||
} | ||
|
||
const faviconSvgUrl = "/favicon.svg"; | ||
const faviconPngUrl = "/favicon.png"; | ||
const logoSvgUrl = "/logo.svg"; | ||
const logoAlt = `${siteName}'s logo`; | ||
|
||
export { | ||
description, | ||
faviconPngUrl, | ||
faviconSvgUrl, | ||
logoAlt, | ||
logoSvgUrl, | ||
makeTitle, | ||
siteName, | ||
slogan, | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"name": "Why Switch?", | ||
"background_color": "#22C55E", | ||
"theme_color": "#22C55E", | ||
"description": "Why Switch is an informative website about green/green energy.", | ||
"display": "standalone" | ||
} |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> | ||
<url> | ||
<loc>https://loud-ape-90.deno.dev/</loc> | ||
<lastmod>2023-12-18</lastmod> | ||
</url> | ||
</urlset> |