Skip to content

Commit

Permalink
adding title and descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
AlfieJones committed Jun 10, 2024
1 parent 3b83dd2 commit b74ff28
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
1 change: 1 addition & 0 deletions apps/marketing-astro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"astro": "^4.9.2",
"class-variance-authority": "^0.7.0",
"framer-motion": "^11.2.6",
"js-yaml": "^4.1.0",
"motion": "^10.18.0",
"posthog-js": "^1.133.0",
"react": "^18.3.1",
Expand Down
13 changes: 11 additions & 2 deletions apps/marketing-astro/src/pages/docs/[...path].astro
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import Heading from "../../components/schema/heading.astro";
import Tabs from "../../components/schema/tabs.astro";
import Tab from "../../components/schema/tab.astro";
import Fence from "../../components/schema/fence.astro";
import yaml from "js-yaml";
export const prerender = true;
Expand Down Expand Up @@ -59,7 +60,7 @@ const components = {
h6: Heading,
tabs: Tabs,
tab: Tab,
fence: Fence
fence: Fence,
} as Record<string, any>;
const { path } = Astro.params;
Expand All @@ -78,10 +79,18 @@ function isActive(section: any) {
return false;
}
const frontmatter = ast.attributes.frontmatter
? (yaml.load(ast.attributes.frontmatter) as Record<string, string>)
: {};
const sections = await getFiles();
---

<Root title="" description="" viewTransitions>
<Root
title={frontmatter["title"] + " | Pixeleye"}
description={frontmatter["description"]}
viewTransitions
>
<div class="mx-auto px-4">
<div
class="relative mx-auto flex w-full flex-auto justify-center sm:px-2 md:px-8"
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b74ff28

Please sign in to comment.