modified meta tags

added unique page descriptions
This commit is contained in:
liyunze 2023-06-18 14:15:51 +08:00
parent b2cfe786a2
commit 67eeb90021
8 changed files with 21 additions and 16 deletions

View file

@ -3,19 +3,17 @@ import NavBar from "../components/navBar.astro";
export interface Props { export interface Props {
title: string; title: string;
description: string;
} }
const { title } = Astro.props; const { title, description } = Astro.props;
--- ---
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta <meta name="description" content={description} />
name="description"
content="Get started with Coworking streams!"
/>
<meta name="keywords" content="coworking, study, streams" /> <meta name="keywords" content="coworking, study, streams" />
<meta name="author" content="RyanPython" /> <meta name="author" content="RyanPython" />
<meta name="viewport" content="width=device-width" /> <meta name="viewport" content="width=device-width" />

View file

@ -4,6 +4,7 @@ import NavBar from "../components/navBar.astro";
export interface Props { export interface Props {
frontmatter: { frontmatter: {
title: string; title: string;
description: string;
}; };
} }
@ -14,10 +15,7 @@ const { frontmatter } = Astro.props;
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta <meta name="description" content={frontmatter.description} />
name="description"
content="Get started with Coworking streams!"
/>
<meta name="keywords" content="coworking, study, streams" /> <meta name="keywords" content="coworking, study, streams" />
<meta name="author" content="RyanPython" /> <meta name="author" content="RyanPython" />
<meta name="viewport" content="width=device-width" /> <meta name="viewport" content="width=device-width" />

View file

@ -7,7 +7,7 @@ import Layout from "../layouts/Layout.astro";
// - why did I open source // - why did I open source
--- ---
<Layout title="About"> <Layout title="About" description="About the creator of this website + FAQ">
<div class="h-full flex flex-col text-white"> <div class="h-full flex flex-col text-white">
<div class="w-full h-full flex flex-col justify-center items-center"> <div class="w-full h-full flex flex-col justify-center items-center">
<div <div

View file

@ -1,6 +1,7 @@
--- ---
title: Bots title: Bots
layout: "../layouts/Markdown.astro" layout: "../layouts/Markdown.astro"
description: Find out the bots you can use for your stream!
--- ---
# Twitch Bots # Twitch Bots

View file

@ -2,7 +2,10 @@
import Layout from "../layouts/Layout.astro"; import Layout from "../layouts/Layout.astro";
--- ---
<Layout title="Get started with Coworking streams!"> <Layout
title="Get started with Coworking streams"
description="A guide for new and existing coworking streamers!"
>
<div <div
class="flex flex-col lg:flex-row justify-center items-center h-full text-gray-100 sm:flex-col" class="flex flex-col lg:flex-row justify-center items-center h-full text-gray-100 sm:flex-col"
> >

View file

@ -1,6 +1,7 @@
--- ---
title: Specifications title: Specifications
layout: "../layouts/Markdown.astro" layout: "../layouts/Markdown.astro"
description: Find out the minimum computer specification requirements for coworking streams!
--- ---
<!-- <!--

View file

@ -1,17 +1,20 @@
--- ---
title: Tips title: Tips
layout: "../layouts/Markdown.astro" layout: "../layouts/Markdown.astro"
description: Tips for coworking streamers
--- ---
# Tips # Tips
Here are some tips for coworking streamers! Here are some tips for coworking streamers!
- [Tips](#tips)
- [To mute or not to mute?](#to-mute-or-not-to-mute) - [To mute or not to mute?](#to-mute-or-not-to-mute)
- [Should I leave chat opened while working?](#should-i-leave-chat-opened-while-working) - [Should I leave chat opened while working?](#should-i-leave-chat-opened-while-working)
- [Fixed schedule](#fixed-schedule) - [Fixed schedule](#fixed-schedule)
- [Social media](#social-media) - [Social media](#social-media)
- [Chat commands for coworking streams](#chat-commands-for-coworking-streams) - [Chat commands for coworking streams](#chat-commands-for-coworking-streams)
- [References](#references)
--- ---

View file

@ -1,6 +1,7 @@
--- ---
title: Widgets title: Widgets
layout: "../layouts/Markdown.astro" layout: "../layouts/Markdown.astro"
description: Find out the widgets you can use to enhance your stream!
--- ---
# Widgets # Widgets