--- interface Props { path: string; } const { path } = Astro.props; const directories = ["about", "works", "links"] --- /home/kyren/{path} home {directories.map((dir) => ( {dir} /* For whitespace */ ))}