-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from swift502/astro-v5
Astro v5
- Loading branch information
Showing
25 changed files
with
456 additions
and
343 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
</script> | ||
</head> | ||
|
||
<body/> | ||
<body> | ||
</body> | ||
|
||
</html> |
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 |
---|---|---|
@@ -1,24 +1,37 @@ | ||
--- | ||
import { constructPageTitle } from '../../scripts/astro-helpers'; | ||
import siteData from '../../data/site.yml'; | ||
import '@fontsource/catamaran/600.css'; | ||
import '@fontsource/catamaran/900.css'; | ||
import '@fontsource/solway/400.css'; | ||
import '@fontsource/solway/500.css'; | ||
import '@fontsource/solway/700.css'; | ||
import 'normalize.css'; | ||
const { pageInfo } = Astro.props; | ||
import '../../styles/global.css'; | ||
import type { PageInfo } from '../../scripts/astro-helpers'; | ||
const pageTitle = constructPageTitle(pageInfo); | ||
const pageDescription = pageInfo.description ?? siteData.description; | ||
const pageImage = import.meta.env.SITE + (pageInfo.image ?? siteData.image); | ||
interface Props { pageInfo: PageInfo; } | ||
const { pageInfo } = Astro.props; | ||
--- | ||
|
||
<meta charset="utf-8"> | ||
|
||
<title>{pageTitle}</title> | ||
<meta name="description" content={pageDescription}> | ||
<title>{pageInfo.title}</title> | ||
<meta name="description" content={pageInfo.description}> | ||
<meta name="viewport" content="width=device-width,initial-scale=1"> | ||
{pageInfo.noIndex && ( | ||
<meta name="robots" content="noindex"/> | ||
)} | ||
|
||
<meta property="og:title" content={pageTitle}> | ||
<meta property="og:title" content={pageInfo.title}> | ||
<meta property="og:url" content={Astro.url}> | ||
<meta property="og:description" content={pageDescription}> | ||
<meta property="og:type" content="website"/> | ||
<meta property="og:image" content={pageImage}> | ||
<meta property="og:description" content={pageInfo.description}> | ||
<meta property="og:type" content="website"> | ||
<meta property="og:image" content={pageInfo.image}> | ||
|
||
<script is:inline src="/scripts/global.js"/> | ||
<script is:inline> | ||
function fadeIn(element) | ||
{ | ||
element.style.animation = 'fadeIn 0.2s ease-out'; | ||
element.style.opacity = 1; | ||
} | ||
</script> |
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,15 @@ | ||
--- | ||
import Head from '../components/core/Head.astro'; | ||
const { pageInfo } = Astro.props; | ||
--- | ||
|
||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<Head pageInfo={pageInfo} /> | ||
</head> | ||
<body> | ||
<slot /> | ||
</body> | ||
</html> |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.