Fix page title in blog techs index and add missing languages prop to Languages component
This commit is contained in:
@@ -3,7 +3,7 @@ import Layout from "../../../layouts/Layout.astro";
|
|||||||
import Languages from "../../../components/blog/Languages.astro";
|
import Languages from "../../../components/blog/Languages.astro";
|
||||||
import Heading from "../../../components/ui/Heading.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 allPosts = await Astro.glob("../posts/*.md");
|
||||||
const languages = [
|
const languages = [
|
||||||
...new Set(allPosts.map((post) => post.frontmatter.languages).flat()),
|
...new Set(allPosts.map((post) => post.frontmatter.languages).flat()),
|
||||||
@@ -14,7 +14,7 @@ const languages = [
|
|||||||
<section class="py-8">
|
<section class="py-8">
|
||||||
<div class="flex flex-col gap-8 max-w-3xl mx-auto">
|
<div class="flex flex-col gap-8 max-w-3xl mx-auto">
|
||||||
<Heading text="Technologies" />
|
<Heading text="Technologies" />
|
||||||
<Languages variant="vertical" />
|
<Languages variant="vertical" languages={languages} /> <!-- Fixed: Missing languages prop -->
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</Layout>
|
</Layout>
|
||||||
|
|||||||
Reference in New Issue
Block a user