refactor: use YAML for products

Added YAML support as per https://docs.astro.build/en/recipes/add-yaml-support
and converted products.json to products.yaml.
This commit is contained in:
Oliver Davies 2023-11-06 21:22:36 +00:00
parent 64a0f9e90b
commit 2e633d3a96
6 changed files with 114 additions and 86 deletions

View file

@ -3,10 +3,8 @@ layout: ~/layouts/PageLayout.astro
title: Products and Services
---
import ListingPage from "~/components/ListingPage.astro";
import _ from "lodash";
import priceFormatter from "~/price-formatter";
import products from "~/products.json";
import products from "~/products.yaml";
<div class="space-y-12">
{products.map((product) => (