Skip to content

Commit

Permalink
refactor: update metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
gao-sun committed Oct 28, 2024
1 parent cf57fd4 commit 2244436
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 7 deletions.
Binary file modified public/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/favicon-160x160.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 12 additions & 4 deletions src/layouts/Layout.astro
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
---
type Props = {
title?: string;
};
const { title } = Astro.props;
---

<!doctype html>
<html lang="en">
<head>
Expand All @@ -6,7 +14,7 @@
name="description"
content="Auth Wiki is a comprehensive collection of articles, tutorials, and resources about authentication and authorization. Learn about OAuth 2.0, OpenID Connect, SAML, and more."
/>
<meta name="viewport" content="width=device-width" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link
rel="icon"
Expand All @@ -17,18 +25,18 @@
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<meta name="generator" content={Astro.generator} />
<title>
Auth.wiki - All you need to know about authentication and authorization
</title>
<title>{title ? `${title} · Auth Wiki` : "Auth Wiki"}</title>
<style>
/* Load fonts */
@import url("https://fonts.googleapis.com/css2?family=Cantata+One&display=swap");
</style>
</head>

<body>
<slot />
</body>
</html>

<style is:global>
:root {
--text-color: #fff;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/[slug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ if (!Content) {
}
---

<Layout>
<Layout title={title}>
<Topbar />
<FancyHr />
<main>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ const sections = articles
<h1><span class="purple">Auth</span> Wiki</h1>
<p>
Explore and find clear definitions of key glossaries related to
authentication and identity management. Work with open-standard
protocols like OpenID Connect, OAuth 2.0, and SAML 2.0 .
authentication, authorization, and identity management. Work with
open-standards like OpenID Connect, OAuth 2.0, and SAML 2.0 .
</p>
</header>
<div class="content">
Expand Down

0 comments on commit 2244436

Please sign in to comment.