From 6fbe702c916cdeb32955979cd42a0e0869c417b2 Mon Sep 17 00:00:00 2001 From: goose Date: Sat, 5 Oct 2024 23:11:04 +0700 Subject: [PATCH] fix: add missing title and description meta tags --- src/layouts/Layout.astro | 9 +++++---- src/pages/btree-under-a-microscope/basics.mdx | 8 +++++--- src/pages/btree-under-a-microscope/databases.mdx | 8 +++++--- src/pages/btree-under-a-microscope/ending.mdx | 13 +++++++------ src/pages/btree-under-a-microscope/intro.mdx | 9 ++++++--- .../btree-under-a-microscope/optimizations.mdx | 8 +++++--- src/pages/btree-under-a-microscope/variations.mdx | 8 +++++--- 7 files changed, 38 insertions(+), 25 deletions(-) diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index df28f55..daba386 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -7,23 +7,24 @@ import Favicon from '@components/Favicon.astro' import '../styles/tailwind.base.css' type Props = { + title: string + description: string postTitle?: string - frontmatter?: Record stickyAsideId?: string } -const { postTitle, frontmatter, stickyAsideId } = Astro.props +const { title, description, postTitle, stickyAsideId } = Astro.props --- - + - {frontmatter?.title} + {title}
diff --git a/src/pages/btree-under-a-microscope/basics.mdx b/src/pages/btree-under-a-microscope/basics.mdx index bae8f5d..7e08105 100644 --- a/src/pages/btree-under-a-microscope/basics.mdx +++ b/src/pages/btree-under-a-microscope/basics.mdx @@ -1,6 +1,4 @@ --- -title: "B-Tree Under a Microscope - Part 1: The Basics" -description: "A deep dive into the B-Tree data structure: Learn everything from basic operations to variations and various optimizations." --- import { Image } from 'astro:assets'; @@ -13,7 +11,11 @@ import ChapterLink from "@components/ChapterLink.astro"; import binarySearchTree from '@images/binary-search-tree.png'; import plainBtree from '@images/plain-btree.png'; - +
+

Ending

@@ -97,6 +100,4 @@ If you are interested in learning more about B-Tree, here are some resources tha - - - + diff --git a/src/pages/btree-under-a-microscope/intro.mdx b/src/pages/btree-under-a-microscope/intro.mdx index 72326ce..e6448e0 100644 --- a/src/pages/btree-under-a-microscope/intro.mdx +++ b/src/pages/btree-under-a-microscope/intro.mdx @@ -1,12 +1,15 @@ --- -title: "B-Tree Under a Microscope" -description: "A deep dive into the B-Tree data structure: Learn everything from basic operations to variations and various optimizations." --- import Layout from "@layouts/Layout.astro"; import ChapterLink from "@components/ChapterLink.astro"; - + B-Tree features in every data structure textbook, and its presence spans across different areas. It is dubbed "ubiquitous" just 8 years after its creation. I first encountered B-Tree through working with database indexes, specifically diff --git a/src/pages/btree-under-a-microscope/optimizations.mdx b/src/pages/btree-under-a-microscope/optimizations.mdx index 1b56465..3926c17 100644 --- a/src/pages/btree-under-a-microscope/optimizations.mdx +++ b/src/pages/btree-under-a-microscope/optimizations.mdx @@ -1,6 +1,4 @@ --- -title: "B-Tree Under a Microscope - Part 4: Optimizations" -description: "A deep dive into the B-Tree data structure: Learn everything from basic operations to variations and various optimizations." --- import { Image } from 'astro:assets'; @@ -12,7 +10,11 @@ import Callout from "@components/Callout.astro"; import ChapterLink from "@components/ChapterLink.astro"; import slottedPage from '@images/slotted-page.png'; - +
+