From aea921eb8df8d863e21c89e871c8c7aae404aaa7 Mon Sep 17 00:00:00 2001 From: pglevy Date: Tue, 25 May 2021 17:45:53 -0400 Subject: [PATCH 1/4] category layout and breadcrumbs working for first couple cats --- _categories/injectable-contraceptive.md | 4 ++ _categories/intrauterine-device-iud.md | 5 +++ _config.yml | 3 ++ _data/categories.yml | 2 +- _includes/breadcrumbs.html | 2 + _includes/navigation-extended.html | 2 +- _layouts/category.html | 60 +++++++++++++++++++++++++ _layouts/index.html | 9 ++++ _products/product-1.md | 1 + 9 files changed, 86 insertions(+), 2 deletions(-) create mode 100644 _categories/injectable-contraceptive.md create mode 100644 _categories/intrauterine-device-iud.md create mode 100644 _layouts/category.html diff --git a/_categories/injectable-contraceptive.md b/_categories/injectable-contraceptive.md new file mode 100644 index 0000000..d45f8dc --- /dev/null +++ b/_categories/injectable-contraceptive.md @@ -0,0 +1,4 @@ +--- +layout: category +title: Injectable Contraceptive +--- \ No newline at end of file diff --git a/_categories/intrauterine-device-iud.md b/_categories/intrauterine-device-iud.md new file mode 100644 index 0000000..5ed2b87 --- /dev/null +++ b/_categories/intrauterine-device-iud.md @@ -0,0 +1,5 @@ +--- +layout: category +title: Intrauterine Device (IUD) +permalink: /intrauterine-device-iud.html +--- \ No newline at end of file diff --git a/_config.yml b/_config.yml index dcdce83..636c4f3 100644 --- a/_config.yml +++ b/_config.yml @@ -20,6 +20,9 @@ baseurl: /med-supply-cat collections: products: output: true + permalink: /:categories/:title.html + categories: + output: true # Set a short name for the site to use in the header section. short-title: USHELP MSC \ No newline at end of file diff --git a/_data/categories.yml b/_data/categories.yml index 5cd28ca..7523630 100644 --- a/_data/categories.yml +++ b/_data/categories.yml @@ -1,5 +1,5 @@ - name: Intrauterine Device (IUD) - url: "/products/product-1.html" + url: "/intrauterine-device-iud.html" image: "assets/category-images/category-IUD.jpg" no-products: 5 last-update: 3/23/2020 diff --git a/_includes/breadcrumbs.html b/_includes/breadcrumbs.html index 847972c..6b6bd29 100644 --- a/_includes/breadcrumbs.html +++ b/_includes/breadcrumbs.html @@ -6,7 +6,9 @@
  • + {{ page.category }} +
  • {{ page.title }} diff --git a/_includes/navigation-extended.html b/_includes/navigation-extended.html index 0d0b3ee..00b98fa 100644 --- a/_includes/navigation-extended.html +++ b/_includes/navigation-extended.html @@ -13,7 +13,7 @@ Home
  • - +