Code Snippets Astro

Short texts Astro 🧑‍💻 Code snippets Astro ✍️ Reading lists Astro 👀

Astro bits

— import HeaderLayout from “./HeaderLayout.astro” import FooterLayout from “./FooterLayout.astro” const {title} = Astro.props; — {title} | MITH

Astro bits

— import HeaderLayout from “./HeaderLayout.astro” import FooterLayout from “./FooterLayout.astro” const {title} = Astro.props; — {title} | MITH — import { Markdown } from ‘astro/components’; import BaseLayout from “../../layouts/BaseLayout.astro”; import TwitterLink from “../../components/TwitterLink.astro”; import peopleJson from “../../data/people.json” export async function getStaticPaths() { const currentPeople = peopleJson.filter((person) => person[‘current identities’].length) const paths = currentPeople.map((personData) => { const […]