Skip to main content

Overview

The YouTube policy page (youtube.astro) displays RobTop Games’ video monetization policy and guidelines for content creators who make videos about their games.

Source Code

src/pages/youtube.astro
---
import Layout from "../layouts/Layout.astro";
import Text from "../components/Text.astro";
---

<Layout
  title="YouTube - RobTop Games"
  description="RobTop Games video monetization policy and guidelines for content creators."
>
  <Text title="RobTop Games: Monetization" />
</Layout>

Page Structure

The page uses a minimal structure with just two components:
  1. Layout Component - Provides the base HTML structure, header, and footer
  2. Text Component - Displays the content card with policy information

Content Display

The Text component renders a styled content card with the title “RobTop Games: Monetization”. This component provides:
  • A consistent card design matching the site theme
  • Centered title header
  • Content area for policy text

Accessing the Page

The page is accessible at:
https://yourdomain.com/youtube
It’s also linked from the Footer component when viewing any page except /youtube itself:
Footer link logic
{
  pathname !== "/youtube" ? (
    <a href="/youtube">
      <span>Video Policy</span>
    </a>
  ) : null
}

SEO Configuration

The page includes proper SEO metadata:
  • Title: “YouTube - RobTop Games”
  • Description: “RobTop Games video monetization policy and guidelines for content creators.”
  • Meta Tags: Automatically generated by the SEO component

Customizing Content

To customize the policy content, edit the Text component:
src/components/Text.astro
<div class="card">
  <div class="card-body">
    <h2>{title}</h2>
    <!-- Add your policy content here -->
    <p>Your monetization policy text...</p>
  </div>
</div>
Alternatively, you can replace the Text component with custom content:
src/pages/youtube.astro
<Layout
  title="YouTube - RobTop Games"
  description="Video monetization policy"
>
  <section class="container py-5">
    <h1>Monetization Policy</h1>
    <p>Content creators are welcome to...</p>
    <ul>
      <li>Make gameplay videos</li>
      <li>Monetize their content</li>
      <li>Create tutorials and guides</li>
    </ul>
  </section>
</Layout>
The YouTube policy page is only linked from the footer, not from the main navigation menu. Users can access it by scrolling to the bottom of any page.

Text Component

Learn about the Text content card component

Footer Component

See how the Footer links to this page

Build docs developers (and LLMs) love