Fix page title in blog techs index and add missing languages prop to Languages component

This commit is contained in:
EFEELE
2025-04-08 10:50:41 -06:00
parent 4b505252e3
commit a4f1b1ef8f

View File

@@ -3,7 +3,7 @@ import Layout from "../../../layouts/Layout.astro";
import Languages from "../../../components/blog/Languages.astro";
import Heading from "../../../components/ui/Heading.astro";
const pageTitle = "Languages";
const pageTitle = "Technologies"; // Fixed: Title was "Languages" but heading shows "Technologies"
const allPosts = await Astro.glob("../posts/*.md");
const languages = [
...new Set(allPosts.map((post) => post.frontmatter.languages).flat()),
@@ -14,7 +14,7 @@ const languages = [
<section class="py-8">
<div class="flex flex-col gap-8 max-w-3xl mx-auto">
<Heading text="Technologies" />
<Languages variant="vertical" />
<Languages variant="vertical" languages={languages} /> <!-- Fixed: Missing languages prop -->
</div>
</section>
</Layout>