From e166edb44a467ddef0b7e7e2044fca007e6742bb Mon Sep 17 00:00:00 2001 From: dereklseitz Date: Sat, 6 Sep 2025 11:05:36 -0500 Subject: [PATCH] refactor: Standardize inventory data and naming conventions This commit refactors the product inventory data to be a flat, single array. This design improves data versatility and scalability for various site functions. - Flattened the data structure for easier filtering and searching. - Atomized product attributes, such as `productNumber` and `skuID`. - Standardized variable and object key naming to `camelCase` and `UPPERCASE_SNAKE_CASE` for constants. - Added an `isFeatured` flag to products to enable dynamic content on the homepage. - Implemented a meta tag in the base template to control search engine indexing on a per-page basis. --- src/_data/credits.js | 180 +++++----- src/_data/inventory.js | 712 ++++++++++++++++++++------------------ src/_data/promotions.js | 4 +- src/_data/testimonials.js | 4 +- src/_includes/base.njk | 5 +- src/about.njk | 1 + src/community.njk | 3 +- src/credits.njk | 11 +- src/gallery.njk | 1 + 9 files changed, 479 insertions(+), 442 deletions(-) diff --git a/src/_data/credits.js b/src/_data/credits.js index 8a56116..cd9677c 100644 --- a/src/_data/credits.js +++ b/src/_data/credits.js @@ -6,230 +6,230 @@ /* **Credit Template** { - file_name: "", + fileName: "", category: "", creator: "", - creator_url: "", + creatorUrl: "", host: "", - src_url: "", + sourceUrl: "", license: "", - license_url: "" + licenseUrl: "" } */ -const credits = [ +const CREDITS = [ { - file_name: "apple-tree.jpg", + fileName: "apple-tree.jpg", category: "trees", creator: "Peter B. Jr.", - creator_url: "https://pixabay.com/users/peterbjr-26224443/", + creatorUrl: "https://pixabay.com/users/peterbjr-26224443/", host: "Pixabay", - src_url: "https://pixabay.com/images/search/apple%20tree/", + sourceUrl: "https://pixabay.com/images/search/apple%20tree/", license: "Pixabay Content License", - license_url: "https://pixabay.com/service/license-summary/" + licenseUrl: "https://pixabay.com/service/license-summary/" }, { - file_name: "silver-birch.jpg", + fileName: "silver-birch.jpg", category: "trees", creator: "Jonnelle Yankovich", - creator_url: "https://unsplash.com/@jey_photography", + creatorUrl: "https://unsplash.com/@jey_photography", host: "Unsplash", - src_url: "https://unsplash.com/photos/green-tree-during-daytime-EIpzTB1BpS8", + sourceUrl: "https://unsplash.com/photos/green-tree-during-daytime-EIpzTB1BpS8", license: "Unsplash License", - license_url: "https://unsplash.com/license" + licenseUrl: "https://unsplash.com/license" }, { - file_name: "japanese-maple-tree.jpg", + fileName: "japanese-maple-tree.jpg", category: "trees", creator: "yamasa-n", - creator_url: "https://unsplash.com/@heppoko_yama", + creatorUrl: "https://unsplash.com/@heppoko_yama", host: "Unsplash", - src_url: "https://unsplash.com/photos/red-and-green-maple-leaves-HqcZ616IEHc", + sourceUrl: "https://unsplash.com/photos/red-and-green-maple-leaves-HqcZ616IEHc", license: "Unsplash License", - license_url: "https://unsplash.com/license" + licenseUrl: "https://unsplash.com/license" }, { - file_name: "crepe-myrtle.jpg", + fileName: "crepe-myrtle.jpg", category: "shrubs", creator: "phoenix727", - creator_url: "https://pixabay.com/users/phoenix727-2349160/", + creatorUrl: "https://pixabay.com/users/phoenix727-2349160/", host: "Pixabay", - src_url: "https://pixabay.com/images/search/crepe%20myrtle/", + sourceUrl: "https://pixabay.com/images/search/crepe%20myrtle/", license: "Pixabay Content License", - license_url: "https://pixabay.com/service/license-summary/" + licenseUrl: "https://pixabay.com/service/license-summary/" }, { - file_name: "hydrangea.jpg", + fileName: "hydrangea.jpg", category: "shrubs", creator: "Couleur", - creator_url: "https://pixabay.com/users/couleur-1195798/", + creatorUrl: "https://pixabay.com/users/couleur-1195798/", host: "Pixabay", - src_url: "https://pixabay.com/images/search/hydrangea/", + sourceUrl: "https://pixabay.com/images/search/hydrangea/", license: "Pixabay Content License", - license_url: "https://pixabay.com/service/license-summary/" + licenseUrl: "https://pixabay.com/service/license-summary/" }, { - file_name: "holly.jpg", + fileName: "holly.jpg", category: "shrubs", creator: "WolfBlur", - creator_url: "https://pixabay.com/users/wolfblur-2503887/", + creatorUrl: "https://pixabay.com/users/wolfblur-2503887/", host: "Pixabay", - src_url: "https://pixabay.com/images/search/holly/", + sourceUrl: "https://pixabay.com/images/search/holly/", license: "Pixabay Content License", - license_url: "https://pixabay.com/service/license-summary/" + licenseUrl: "https://pixabay.com/service/license-summary/" }, { - file_name: "bird-house.jpg", + fileName: "bird-house.jpg", category: "accessories", creator: "Roland Lehmler", - creator_url: "https://pixabay.com/users/rlehmler-84553/", + creatorUrl: "https://pixabay.com/users/rlehmler-84553/", host: "Pixabay", - src_url: "https://pixabay.com/images/search/birdhouse/", + sourceUrl: "https://pixabay.com/images/search/birdhouse/", license: "Pixabay Content License", - license_url: "https://pixabay.com/service/license-summary/" + licenseUrl: "https://pixabay.com/service/license-summary/" }, { - file_name: "watering-can.jpg", + fileName: "watering-can.jpg", category: "accessories", creator: "Lorrie Schoettler", - creator_url: "https://pixabay.com/users/stonyridgefarm-6290522/", + creatorUrl: "https://pixabay.com/users/stonyridgefarm-6290522/", host: "Pixabay", - src_url: "https://pixabay.com/images/search/watering%20can/", + sourceUrl: "https://pixabay.com/images/search/watering%20can/", license: "Pixabay Content License", - license_url: "https://pixabay.com/service/license-summary/" + licenseUrl: "https://pixabay.com/service/license-summary/" }, { - file_name: "garden-pots.jpg", + fileName: "garden-pots.jpg", category: "accessories", creator: "PublicDomainPictures", - creator_url: "https://pixabay.com/users/publicdomainpictures-14/", + creatorUrl: "https://pixabay.com/users/publicdomainpictures-14/", host: "Pixabay", - src_url: "https://pixabay.com/images/search/garden%20pots/", + sourceUrl: "https://pixabay.com/images/search/garden%20pots/", license: "Pixabay Content License", - license_url: "https://pixabay.com/service/license-summary/" + licenseUrl: "https://pixabay.com/service/license-summary/" }, { - file_name: "string-of-pearls.jpg", + fileName: "string-of-pearls.jpg", category: "indoor", creator: "rawpixel.com", - creator_url: "https://www.rawpixel.com/", + creatorUrl: "https://www.rawpixel.com/", host: "rawpixel.com", - src_url: "https://www.rawpixel.com/image/16390470", + sourceUrl: "https://www.rawpixel.com/image/16390470", license: "rawpixel Business License", - license_url: "https://www.rawpixel.com/services/licenses/business" + licenseUrl: "https://www.rawpixel.com/services/licenses/business" }, { - file_name: "spider-plant.jpg", + fileName: "spider-plant.jpg", category: "indoor", creator: "Lucian Alexe", - creator_url: "https://unsplash.com/@lucian_alexe", + creatorUrl: "https://unsplash.com/@lucian_alexe", host: "Unsplash", - src_url: "https://unsplash.com/photos/green-leaf-plant-in-pot-Si8rYoK5tf0", + sourceUrl: "https://unsplash.com/photos/green-leaf-plant-in-pot-Si8rYoK5tf0", license: "Unsplash License", - license_url: "https://unsplash.com/license" + licenseUrl: "https://unsplash.com/license" }, { - file_name: "zebra-plant.jpg", + fileName: "zebra-plant.jpg", category: "indoor", creator: "Galina N", - creator_url: "https://unsplash.com/@galina88", + creatorUrl: "https://unsplash.com/@galina88", host: "Unsplash", - src_url: "https://unsplash.com/photos/green-succulent-in-teal-ceramic-vase-miziNqvJx5M", + sourceUrl: "https://unsplash.com/photos/green-succulent-in-teal-ceramic-vase-miziNqvJx5M", license: "Unsplash License", - license_url: "https://unsplash.com/license" + licenseUrl: "https://unsplash.com/license" }, { - file_name: "firepit.jpg", + fileName: "firepit.jpg", category: "patio", creator: "Tim Gouw", - creator_url: "https://unsplash.com/@punttim", + creatorUrl: "https://unsplash.com/@punttim", host: "Unsplash", - src_url: "https://unsplash.com/photos/burning-firewoods-on-grille-MApjpqu9V7E", + sourceUrl: "https://unsplash.com/photos/burning-firewoods-on-grille-MApjpqu9V7E", license: "Unsplash License", - license_url: "https://unsplash.com/license" + licenseUrl: "https://unsplash.com/license" }, { - file_name: "string-lights.jpg", + fileName: "string-lights.jpg", category: "patio", creator: "Giorgio Trovato", - creator_url: "https://unsplash.com/@giorgiotrovato", + creatorUrl: "https://unsplash.com/@giorgiotrovato", host: "Unsplash", - src_url: "https://unsplash.com/photos/string-lights-in-the-street-e75PYAhhZRY", + sourceUrl: "https://unsplash.com/photos/string-lights-in-the-street-e75PYAhhZRY", license: "Unsplash License", - license_url: "https://unsplash.com/license" + licenseUrl: "https://unsplash.com/license" }, { - file_name: "parlor-palm.jpg", + fileName: "parlor-palm.jpg", category: "patio", creator: "Natalie Kinnear", - creator_url: "https://unsplash.com/@nataliekinnear", + creatorUrl: "https://unsplash.com/@nataliekinnear", host: "Unsplash", - src_url: "https://unsplash.com/photos/a-potted-plant-sitting-on-top-of-a-wooden-table-Uii3CSyuItI", + sourceUrl: "https://unsplash.com/photos/a-potted-plant-sitting-on-top-of-a-wooden-table-Uii3CSyuItI", license: "Unsplash License", - license_url: "https://unsplash.com/license" + licenseUrl: "https://unsplash.com/license" }, { - file_name: "garden-hose.jpg", + fileName: "garden-hose.jpg", category: "tools", creator: "Seiya Maeda", - creator_url: "https://unsplash.com/@seiya_maeda", + creatorUrl: "https://unsplash.com/@seiya_maeda", host: "Unsplash", - src_url: "https://unsplash.com/photos/a-bunch-of-green-hoses-sitting-on-top-of-a-wooden-box-xbqLvtw_nd0", + sourceUrl: "https://unsplash.com/photos/a-bunch-of-green-hoses-sitting-on-top-of-a-wooden-box-xbqLvtw_nd0", license: "Unsplash License", - license_url: "https://unsplash.com/license" + licenseUrl: "https://unsplash.com/license" }, { - file_name: "gardening-tools.jpg", + fileName: "gardening-tools.jpg", category: "tools", creator: "Jeremy Boley", - creator_url: "https://unsplash.com/@jeremyboley", + creatorUrl: "https://unsplash.com/@jeremyboley", host: "Unsplash", - src_url: "https://unsplash.com/photos/a-couple-of-metal-objects-with-a-metal-object-on-top-of-them-DPQMn-nPSy8", + sourceUrl: "https://unsplash.com/photos/a-couple-of-metal-objects-with-a-metal-object-on-top-of-them-DPQMn-nPSy8", license: "Unsplash License", - license_url: "https://unsplash.com/license" + licenseUrl: "https://unsplash.com/license" }, { - file_name: "wheelbarrow.jpg", + fileName: "wheelbarrow.jpg", category: "tools", creator: "Marc Pell", - creator_url: "https://unsplash.com/@blinky264", + creatorUrl: "https://unsplash.com/@blinky264", host: "Unsplash", - src_url: "https://unsplash.com/photos/a-green-wheelbarrow-sitting-on-top-of-a-lush-green-field-L9e7PdFZ5y4", + sourceUrl: "https://unsplash.com/photos/a-green-wheelbarrow-sitting-on-top-of-a-lush-green-field-L9e7PdFZ5y4", license: "Unsplash License", - license_url: "https://unsplash.com/license" + licenseUrl: "https://unsplash.com/license" }, { - file_name: "bark-mulch.jpg", + fileName: "bark-mulch.jpg", category: "landscaping", creator: "K Adams", - creator_url: "https://unsplash.com/@kadams77", + creatorUrl: "https://unsplash.com/@kadams77", host: "Unsplash", - src_url: "https://unsplash.com/photos/a-pile-of-brown-leaves-gbtNHka1MYw", + sourceUrl: "https://unsplash.com/photos/a-pile-of-brown-leaves-gbtNHka1MYw", license: "Unsplash License", - license_url: "https://unsplash.com/license" + licenseUrl: "https://unsplash.com/license" }, { - file_name: "pea-gravel.jpg", + fileName: "pea-gravel.jpg", category: "landscaping", creator: "Toufique", - creator_url: "https://unsplash.com/@toufique", + creatorUrl: "https://unsplash.com/@toufique", host: "Unsplash", - src_url: "https://unsplash.com/photos/assorted-concrete-stones-U9oMaXgI4VI", + sourceUrl: "https://unsplash.com/photos/assorted-concrete-stones-U9oMaXgI4VI", license: "Unsplash License", - license_url: "https://unsplash.com/license" + licenseUrl: "https://unsplash.com/license" }, { - file_name: "stone-pavers.jpg", + fileName: "stone-pavers.jpg", category: "landscaping", creator: "KC Shum", - creator_url: "https://unsplash.com/@kcshum", + creatorUrl: "https://unsplash.com/@kcshum", host: "Unsplash", - src_url: "https://unsplash.com/photos/a-close-up-of-a-sidewalk-with-green-paint-on-it-5YJOpybbcZg", + sourceUrl: "https://unsplash.com/photos/a-close-up-of-a-sidewalk-with-green-paint-on-it-5YJOpybbcZg", license: "Unsplash License", - license_url: "https://unsplash.com/license" + licenseUrl: "https://unsplash.com/license" } ] module.exports = { - credits + CREDITS }; diff --git a/src/_data/inventory.js b/src/_data/inventory.js index 8d40647..ac76bba 100644 --- a/src/_data/inventory.js +++ b/src/_data/inventory.js @@ -8,352 +8,384 @@ /* **Unit Template** { - id: "", - image_file: "", - sku: "", - product_name: "", + productNumber: "", + imageFile: "", + skuID: "", + catNumber: "", + productName: "", category: "", price: , - alt_text: "", - short_description: "", - long_description: "", + altText: "", + shortDescription: "", + longDescription: "", ratings: { count: , - score: - } + score: + }, + isFeatured: , } */ -const inventory = [ +const INVENTORY = [ { - "accessories": [ - { - "id": "01001", - "image_file": "bird-house.jpg", - "sku": "ACC-01001", - "product_name": "Bird House - Pink", - "category": "accessories", - "price": 12.99, - "alt_text": "A pink handcrafted wooden bird house", - "short_description": "A handcrafted wooden bird house in pink.", - "long_description": "A beautifully handcrafted wooden bird house in a gentle pink finish, built by a local carpenter from the Bloom Valley community. Designed with a classic aesthetic and durable, weather-resistant materials, this bird house provides a cozy and safe home for small songbirds. It's a charming accent for any garden or tree and a perfect way to invite nature into your outdoor space.", - "ratings": { - "count": 38, - "score": 4.7 - } - }, - { - "id": "01002", - "image_file": "garden-pots.jpg", - "sku": "ACC-01002", - "product_name": "Gardening Pots - Terra-cotta", - "category": "accessories", - "price": 9.99, - "alt_text": "A set of three traditional terra-cotta gardening pots of varying sizes.", - "short_description": "A classic set of three terra-cotta gardening pots.", - "long_description": "Crafted from porous, natural clay, this set of terra-cotta pots is a timeless choice for any gardener. The material's ability to absorb excess water helps prevent root rot, making it an ideal home for a wide variety of plants. The set includes three different sizes, perfect for potting new seedlings or housing larger plants.", - "ratings": { - "count": 150, - "score": 4.5 - } - }, - { - "id": "01003", - "image_file": "watering-can.jpg", - "sku": "ACC-01003", - "product_name": "Watering Can", - "category": "accessories", - "price": 19.99, - "alt_text": "A modern, metal watering can with a long spout.", - "short_description": "A stylish and functional metal watering can.", - "long_description": "This sleek and durable metal watering can features a long, narrow spout for precise watering, perfect for both indoor and outdoor plants. Its comfortable handle provides a balanced grip, and the sturdy construction ensures it will be a reliable tool for years to come.", - "ratings": { - "count": 85, - "score": 4.8 - } - } - ], - "indoor": [ - { - "id": "02001", - "image_file": "spider-plant.jpg", - "sku": "IND-02001", - "product_name": "Spider Plant", - "category": "indoor", - "price": 14.99, - "alt_text": "A lush spider plant with long, variegated green and white leaves.", - "short_description": "An easy-to-care-for spider plant, perfect for beginners.", - "long_description": "The spider plant (Chlorophytum comosum) is one of the most popular and easiest houseplants to grow. Known for its distinctive arching, variegated leaves, it thrives in a variety of conditions and is a great choice for hanging baskets. It's also a highly effective air purifier.", - "ratings": { - "count": 210, - "score": 4.9 - } - }, - { - "id": "02002", - "image_file": "string-of-pearls.jpg", - "sku": "IND-02002", - "product_name": "String-of-Pearls Plant", - "category": "indoor", - "price": 16.99, - "alt_text": "A cascading string-of-pearls plant with small, spherical green leaves.", - "short_description": "A unique succulent with cascading, pearl-like foliage.", - "long_description": "The string-of-pearls (Senecio rowleyanus) is a striking succulent known for its long, trailing stems dotted with small, bead-like leaves. It's a fantastic plant for a sunny spot on a shelf or in a hanging planter, creating a beautiful, flowing green display. Like most succulents, it requires minimal watering.", - "ratings": { - "count": 95, - "score": 4.6 - } - }, - { - "id": "02003", - "image_file": "zebra-plant.jpg", - "sku": "IND-02003", - "product_name": "Zebra Plant", - "category": "indoor", - "price": 18.99, - "alt_text": "A vibrant zebra plant with deep green leaves and prominent white veins.", - "short_description": "A striking houseplant with bold, striped leaves.", - "long_description": "The zebra plant (Aphelandra squarrosa) is named for its eye-catching foliage—deep green leaves with stark, contrasting white or yellow veins. This plant adds a tropical feel to any room and, with the right care, can also produce brilliant yellow flower bracts. It prefers bright, indirect light and high humidity.", - "ratings": { - "count": 72, - "score": 4.4 - } - } - ], - "landscape": [ - { - "id": "03001", - "image_file": "bark-mulch.jpg", - "sku": "LND-03001", - "product_name": "Pine Bark Mulch (25lb bag)", - "category": "landscaping", - "price": 8.99, - "alt_text": "A 25lb bag of natural pine bark mulch.", - "short_description": "A 25lb bag of premium pine bark mulch for landscaping.", - "long_description": "Pine bark mulch is a top choice for gardeners and landscapers. It helps suppress weeds, retain soil moisture, and moderate soil temperature, which is essential for healthy plant growth. As it decomposes, it adds valuable organic matter to the soil. The rich, dark color also provides an attractive finish to garden beds and pathways.", - "ratings": { - "count": 305, - "score": 4.8 - } - }, - { - "id": "03002", - "image_file": "pea-gravel.jpg", - "sku": "LND-03002", - "product_name": "Pea Gravel (25lb bag)", - "category": "landscaping", - "price": 11.99, - "alt_text": "A 25lb bag of smooth, rounded pea gravel.", - "short_description": "A 25lb bag of decorative pea gravel for landscaping.", - "long_description": "Pea gravel consists of small, smooth, rounded stones, typically in a mix of neutral colors. It's an excellent choice for creating walkways, patios, and decorative ground cover. The smooth texture is comfortable to walk on, and it provides effective drainage and a clean, finished look to any landscape design.", - "ratings": { - "count": 185, - "score": 4.7 - } - }, - { - "id": "03003", - "image_file": "stone-pavers.jpg", - "sku": "LND-03003", - "product_name": "Stone Pavers (single count)", - "category": "landscaping", - "price": 4.50, - "alt_text": "A single rectangular gray stone paver.", - "short_description": "A durable, single stone paver for creating paths and patios.", - "long_description": "Our stone pavers are made from high-quality concrete and are perfect for building durable, long-lasting patios, walkways, and driveways. The classic rectangular shape and neutral gray color make them versatile for a wide range of landscape designs. Sold individually, allowing you to purchase the exact quantity you need for your project.", - "ratings": { - "count": 255, - "score": 4.6 - } - } - ], - "patio": [ - { - "id": "04001", - "image_file": "firepit.jpg", - "sku": "PAT-04001", - "product_name": "Metal Fire-pit", - "category": "patio", - "price": 129.99, - "alt_text": "A round, black metal fire-pit with a mesh lid.", - "short_description": "A sturdy and stylish metal fire-pit for outdoor gatherings.", - "long_description": "Create a warm and inviting atmosphere on your patio with this durable metal fire-pit. Constructed from heat-resistant steel, it features a classic bowl design and includes a mesh lid for safety. Perfect for cool evenings, it's a great centerpiece for entertaining and enjoying the outdoors with friends and family.", - "ratings": { - "count": 55, - "score": 4.9 - } - }, - { - "id": "04002", - "image_file": "string-lights.jpg", - "sku": "PAT-04002", - "product_name": "LED String Lights", - "category": "patio", - "price": 24.99, - "alt_text": "A string of warm white LED lights hanging outdoors.", - "short_description": "A set of energy-efficient LED string lights for ambient lighting.", - "long_description": "Add a touch of magic to your outdoor space with these energy-efficient LED string lights. The warm white glow creates a soft, inviting ambiance, perfect for backyard dinners, parties, or simply relaxing on your patio. The bulbs are shatterproof and weather-resistant, making them ideal for year-round outdoor use.", - "ratings": { - "count": 175, - "score": 4.7 - } - }, - { - "id": "04003", - "image_file": "parlor-palm.jpg", - "sku": "PAT-04003", - "product_name": "Parlor Palm", - "category": "patio", - "price": 22.99, - "alt_text": "A small, potted parlor palm with feathery green fronds.", - "short_description": "An elegant and low-maintenance palm for patios and decks.", - "long_description": "The parlor palm (Chamaedorea elegans) is a classic choice for adding a tropical flair to a covered patio, deck, or indoor space. Known for its graceful, feathery fronds, it's a resilient and slow-growing plant that thrives in low light conditions. It's a great way to bring a lush, green aesthetic to your outdoor living area.", - "ratings": { - "count": 88, - "score": 4.6 - } - } - ], - "shrubs": [ - { - "id": "05001", - "image_file": "hydrangea.jpg", - "sku": "SHR-05001", - "product_name": "Hydrangeas", - "category": "shrubs", - "price": 25.99, - "alt_text": "A vibrant cluster of pink and purple hydrangea flowers.", - "short_description": "A beautiful hydrangea bush (Hydrangea macrophylla), known for its large, colorful blooms.", - "long_description": "Hydrangeas are a quintessential garden shrub, celebrated for their large, showy flower heads. Depending on the soil's pH, the blooms can change color, ranging from deep blues and purples to bright pinks. They are perfect for adding a splash of color to borders, foundations, or as a standalone focal point in the garden.", - "ratings": { - "count": 190, - "score": 4.9 - } - }, - { - "id": "05002", - "image_file": "crepe-myrtle.jpg", - "sku": "SHR-05002", - "product_name": "Crepe Myrtle", - "category": "shrubs", - "price": 28.99, - "alt_text": "A crepe myrtle bush with clusters of bright pink flowers.", - "short_description": "A small crepe myrtle tree, prized for its long-lasting summer blooms.", - "long_description": "The crepe myrtle (Lagerstroemia) is a beloved small tree or shrub, famous for its crepe-paper-like blossoms that last all summer long. Its smooth, multi-hued bark and vibrant fall foliage also add year-round interest to the landscape. This fast-growing plant thrives in sunny locations and requires minimal care.", - "ratings": { - "count": 115, - "score": 4.7 - } - }, - { - "id": "05003", - "image_file": "holly.jpg", - "sku": "SHR-05003", - "product_name": "Holly", - "category": "shrubs", - "price": 21.99, - "alt_text": "A holly bush with deep green leaves and bright red berries.", - "short_description": "A classic evergreen holly bush with traditional red berries.", - "long_description": "Holly (Ilex) is a traditional favorite for its glossy, evergreen leaves and bright red berries that provide winter interest. It's an excellent choice for creating hedges, screens, or as a structural plant in the garden. This hardy shrub is a staple for year-round beauty and can attract birds with its berries.", - "ratings": { - "count": 130, - "score": 4.8 - } - } - ], - "tools": [ - { - "id": "06001", - "image_file": "gardening-tool.jpg", - "sku": "TLS-06001", - "product_name": "Gardening Tool Set", - "category": "tools", - "price": 34.99, - "alt_text": "A set of three gardening tools: a trowel, a cultivator, and a transplanter.", - "short_description": "A three-piece set of essential gardening tools.", - "long_description": "This durable gardening tool set includes a trowel for planting, a cultivator for aerating soil, and a transplanter for moving seedlings. Each tool features a comfortable handle and a sturdy, rust-resistant head. It's the perfect starter set for anyone looking to get their hands dirty in the garden.", - "ratings": { - "count": 200, - "score": 4.7 - } - }, - { - "id": "06002", - "image_file": "gardening-hose.jpg", - "sku": "TLS-06002", - "product_name": "Gardening Hose", - "category": "tools", - "price": 49.99, - "alt_text": "A coiled green gardening hose.", - "short_description": "A kink-resistant and durable gardening hose.", - "long_description": "Our premium gardening hose is made from a high-quality, flexible material that resists kinking and tangling. It's lightweight yet incredibly durable, making watering your garden a breeze. The hose comes with solid brass couplings for a secure, leak-free connection to your spigot.", - "ratings": { - "count": 110, - "score": 4.5 - } - }, - { - "id": "06003", - "image_file": "wheelbarrow.jpg", - "sku": "TLS-06003", - "product_name": "Wheelbarrow", - "category": "tools", - "price": 99.99, - "alt_text": "A sturdy single-wheeled wheelbarrow with a metal basin.", - "short_description": "A heavy-duty wheelbarrow for all your hauling needs.", - "long_description": "This robust wheelbarrow is an essential tool for any serious gardener or landscaper. It features a deep, heavy-duty steel basin and a strong single wheel for easy maneuverability, even on uneven terrain. Perfect for transporting soil, mulch, stones, and other heavy materials around your yard.", - "ratings": { - "count": 65, - "score": 4.9 - } - } - ], - "trees": [ - { - "id": "07001", - "image_file": "apple-tree.jpg", - "sku": "TRS-07001", - "product_name": "Apple Tree (Honeycrisp)", - "category": "trees", - "price": 45.99, - "alt_text": "A young Honeycrisp apple tree in a pot.", - "short_description": "A young Honeycrisp apple tree (Malus domestica), known for its crisp and sweet fruit.", - "long_description": "The Honeycrisp apple tree is a popular choice for home orchards, celebrated for its exceptionally crisp texture and deliciously sweet flavor. This semi-dwarf tree is relatively easy to care for and produces a bountiful harvest of apples in the late summer and early fall. Plant it in a sunny spot to ensure a great yield.", - "ratings": { - "count": 140, - "score": 4.8 - } - }, - { - "id": "07002", - "image_file": "silver-birch.jpg", - "sku": "TRS-07002", - "product_name": "Silver Birch", - "category": "trees", - "price": 39.99, - "alt_text": "A young silver birch tree with smooth, white bark.", - "short_description": "A graceful silver birch tree, known for its iconic white bark.", - "long_description": "The silver birch (Betula pendula) is a stunning ornamental tree prized for its peeling, silvery-white bark and elegant, pendulous branches. It provides year-round visual interest and is an excellent choice for a focal point in your yard. This hardy tree is fast-growing and adds a touch of classic beauty to any landscape.", - "ratings": { - "count": 95, - "score": 4.6 - } - }, - { - "id": "07003", - "image_file": "japanese-maple-tree.jpg", - "sku": "TRS-07003", - "product_name": "Japanese Maple", - "category": "trees", - "price": 55.99, - "alt_text": "A young Japanese Maple tree with lobed red and orange leaves.", - "short_description": "A Japanese Maple tree, famous for its vibrant fall colors.", - "long_description": "Japanese Maple trees (Acer palmatum) are a native of landscapes in northeastern Asia, cherished for their beautiful, lobed leaves and spectacular fall foliage. This young tree will grow into a stunning accent to your garden, providing a vibrant backdrop and a brilliant display of reds, oranges, and yellows in the autumn. It's a robust and long-living addition to any property.", - "ratings": { - "count": 220, - "score": 4.9 - } - } - ] + "productNumber": "001", + "imageFile": "bird-house.jpg", + "skuID": "ACC", + "catNumber": "01", + "productName": "Bird House - Pink", + "category": "accessories", + "price": 12.99, + "altText": "A pink handcrafted wooden bird house", + "shortDescription": "A handcrafted wooden bird house in pink.", + "longDescription": "A beautifully handcrafted wooden bird house in a gentle pink finish, built by a local carpenter from the Bloom Valley community. Designed with a classic aesthetic and durable, weather-resistant materials, this bird house provides a cozy and safe home for small songbirds. It's a charming accent for any garden or tree and a perfect way to invite nature into your outdoor space.", + "ratings": { + "count": 38, + "score": 4.7 + }, + "isFeatured": true + }, + { + "productNumber": "002", + "imageFile": "garden-pots.jpg", + "skuID": "ACC", + "catNumber": "01", + "productName": "Gardening Pots - Terra-cotta", + "category": "accessories", + "price": 9.99, + "altText": "A set of three traditional terra-cotta gardening pots of varying sizes.", + "shortDescription": "A classic set of three terra-cotta gardening pots.", + "longDescription": "Crafted from porous, natural clay, this set of terra-cotta pots is a timeless choice for any gardener. The material's ability to absorb excess water helps prevent root rot, making it an ideal home for a wide variety of plants. The set includes three different sizes, perfect for potting new seedlings or housing larger plants.", + "ratings": { + "count": 150, + "score": 4.5 + }, + "isFeatured": false + }, + { + "productNumber": "003", + "imageFile": "watering-can.jpg", + "skuID": "ACC", + "catNumber": "01", + "productName": "Watering Can", + "category": "accessories", + "price": 19.99, + "altText": "A modern, metal watering can with a long spout.", + "shortDescription": "A stylish and functional metal watering can.", + "longDescription": "This sleek and durable metal watering can features a long, narrow spout for precise watering, perfect for both indoor and outdoor plants. Its comfortable handle provides a balanced grip, and the sturdy construction ensures it will be a reliable tool for years to come.", + "ratings": { + "count": 85, + "score": 4.8 + }, + "isFeatured": false + }, + { + "productNumber": "001", + "imageFile": "spider-plant.jpg", + "skuID": "IND", + "catNumber": "02", + "productName": "Spider Plant", + "category": "indoor", + "price": 14.99, + "altText": "A lush spider plant with long, variegated green and white leaves.", + "shortDescription": "An easy-to-care-for spider plant, perfect for beginners.", + "longDescription": "The spider plant (Chlorophytum comosum) is one of the most popular and easiest houseplants to grow. Known for its distinctive arching, variegated leaves, it thrives in a variety of conditions and is a great choice for hanging baskets. It's also a highly effective air purifier.", + "ratings": { + "count": 210, + "score": 4.9 + }, + "isFeatured": true + }, + { + "productNumber": "002", + "imageFile": "string-of-pearls.jpg", + "skuID": "IND", + "catNumber": "02", + "productName": "String-of-Pearls Plant", + "category": "indoor", + "price": 16.99, + "altText": "A cascading string-of-pearls plant with small, spherical green leaves.", + "shortDescription": "A unique succulent with cascading, pearl-like foliage.", + "longDescription": "The string-of-pearls (Senecio rowleyanus) is a striking succulent known for its long, trailing stems dotted with small, bead-like leaves. It's a fantastic plant for a sunny spot on a shelf or in a hanging planter, creating a beautiful, flowing green display. Like most succulents, it requires minimal watering.", + "ratings": { + "count": 95, + "score": 4.6 + }, + "isFeatured": false + }, + { + "productNumber": "003", + "imageFile": "zebra-plant.jpg", + "skuID": "IND", + "catNumber": "02", + "productName": "Zebra Plant", + "category": "indoor", + "price": 18.99, + "altText": "A vibrant zebra plant with deep green leaves and prominent white veins.", + "shortDescription": "A striking houseplant with bold, striped leaves.", + "longDescription": "The zebra plant (Aphelandra squarrosa) is named for its eye-catching foliage—deep green leaves with stark, contrasting white or yellow veins. This plant adds a tropical feel to any room and, with the right care, can also produce brilliant yellow flower bracts. It prefers bright, indirect light and high humidity.", + "ratings": { + "count": 72, + "score": 4.4 + }, + "isFeatured": false + }, + { + "productNumber": "001", + "imageFile": "bark-mulch.jpg", + "skuID": "LND", + "catNumber": "03", + "productName": "Pine Bark Mulch (25lb bag)", + "category": "landscaping", + "price": 8.99, + "altText": "A 25lb bag of natural pine bark mulch.", + "shortDescription": "A 25lb bag of premium pine bark mulch for landscaping.", + "longDescription": "Pine bark mulch is a top choice for gardeners and landscapers. It helps suppress weeds, retain soil moisture, and moderate soil temperature, which is essential for healthy plant growth. As it decomposes, it adds valuable organic matter to the soil. The rich, dark color also provides an attractive finish to garden beds and pathways.", + "ratings": { + "count": 305, + "score": 4.8 + }, + "isFeatured": false + }, + { + "productNumber": "002", + "imageFile": "pea-gravel.jpg", + "skuID": "LND", + "catNumber": "03", + "productName": "Pea Gravel (25lb bag)", + "category": "landscaping", + "price": 11.99, + "altText": "A 25lb bag of smooth, rounded pea gravel.", + "shortDescription": "A 25lb bag of decorative pea gravel for landscaping.", + "longDescription": "Pea gravel consists of small, smooth, rounded stones, typically in a mix of neutral colors. It's an excellent choice for creating walkways, patios, and decorative ground cover. The smooth texture is comfortable to walk on, and it provides effective drainage and a clean, finished look to any landscape design.", + "ratings": { + "count": 185, + "score": 4.7 + }, + "isFeatured": true + }, + { + "productNumber": "003", + "imageFile": "stone-pavers.jpg", + "skuID": "LND", + "catNumber": "03", + "productName": "Stone Pavers (single count)", + "category": "landscaping", + "price": 4.50, + "altText": "A single rectangular gray stone paver.", + "shortDescription": "A durable, single stone paver for creating paths and patios.", + "longDescription": "Our stone pavers are made from high-quality concrete and are perfect for building durable, long-lasting patios, walkways, and driveways. The classic rectangular shape and neutral gray color make them versatile for a wide range of landscape designs. Sold individually, allowing you to purchase the exact quantity you need for your project.", + "ratings": { + "count": 255, + "score": 4.6 + }, + "isFeatured": false + }, + { + "productNumber": "001", + "imageFile": "firepit.jpg", + "skuID": "PAT", + "catNumber": "04", + "productName": "Metal Fire-pit", + "category": "patio", + "price": 129.99, + "altText": "A round, black metal fire-pit with a mesh lid.", + "shortDescription": "A sturdy and stylish metal fire-pit for outdoor gatherings.", + "longDescription": "Create a warm and inviting atmosphere on your patio with this durable metal fire-pit. Constructed from heat-resistant steel, it features a classic bowl design and includes a mesh lid for safety. Perfect for cool evenings, it's a great centerpiece for entertaining and enjoying the outdoors with friends and family.", + "ratings": { + "count": 55, + "score": 4.9 + }, + "isFeatured": false + }, + { + "productNumber": "002", + "imageFile": "string-lights.jpg", + "skuID": "PAT", + "catNumber": "04", + "productName": "LED String Lights", + "category": "patio", + "price": 24.99, + "altText": "A string of warm white LED lights hanging outdoors.", + "shortDescription": "A set of energy-efficient LED string lights for ambient lighting.", + "longDescription": "Add a touch of magic to your outdoor space with these energy-efficient LED string lights. The warm white glow creates a soft, inviting ambiance, perfect for backyard dinners, parties, or simply relaxing on your patio. The bulbs are shatterproof and weather-resistant, making them ideal for year-round outdoor use.", + "ratings": { + "count": 175, + "score": 4.7 + }, + "isFeatured": true + }, + { + "productNumber": "003", + "imageFile": "parlor-palm.jpg", + "skuID": "PAT", + "catNumber": "04", + "productName": "Parlor Palm", + "category": "patio", + "price": 22.99, + "altText": "A small, potted parlor palm with feathery green fronds.", + "shortDescription": "An elegant and low-maintenance palm for patios and decks.", + "longDescription": "The parlor palm (Chamaedorea elegans) is a classic choice for adding a tropical flair to a covered patio, deck, or indoor space. Known for its graceful, feathery fronds, it's a resilient and slow-growing plant that thrives in low light conditions. It's a great way to bring a lush, green aesthetic to your outdoor living area.", + "ratings": { + "count": 88, + "score": 4.6 + }, + "isFeatured": false + }, + { + "productNumber": "001", + "imageFile": "hydrangea.jpg", + "skuID": "SHR", + "catNumber": "05", + "productName": "Hydrangeas", + "category": "shrubs", + "price": 25.99, + "altText": "A vibrant cluster of pink and purple hydrangea flowers.", + "shortDescription": "A beautiful hydrangea bush (Hydrangea macrophylla), known for its large, colorful blooms.", + "longDescription": "Hydrangeas are a quintessential garden shrub, celebrated for their large, showy flower heads. Depending on the soil's pH, the blooms can change color, ranging from deep blues and purples to bright pinks. They are perfect for adding a splash of color to borders, foundations, or as a standalone focal point in the garden.", + "ratings": { + "count": 190, + "score": 4.9 + }, + "isFeatured": false + }, + { + "productNumber": "002", + "imageFile": "crepe-myrtle.jpg", + "skuID": "SHR", + "catNumber": "05", + "productName": "Crepe Myrtle", + "category": "shrubs", + "price": 28.99, + "altText": "A crepe myrtle bush with clusters of bright pink flowers.", + "shortDescription": "A small crepe myrtle tree, prized for its long-lasting summer blooms.", + "longDescription": "The crepe myrtle (Lagerstroemia) is a beloved small tree or shrub, famous for its crepe-paper-like blossoms that last all summer long. Its smooth, multi-hued bark and vibrant fall foliage also add year-round interest to the landscape. This fast-growing plant thrives in sunny locations and requires minimal care.", + "ratings": { + "count": 115, + "score": 4.7 + }, + "isFeatured": false + }, + { + "productNumber": "003", + "imageFile": "holly.jpg", + "skuID": "SHR", + "catNumber": "05", + "productName": "Holly", + "category": "shrubs", + "price": 21.99, + "altText": "A holly bush with deep green leaves and bright red berries.", + "shortDescription": "A classic evergreen holly bush with traditional red berries.", + "longDescription": "Holly (Ilex) is a traditional favorite for its glossy, evergreen leaves and bright red berries that provide winter interest. It's an excellent choice for creating hedges, screens, or as a structural plant in the garden. This hardy shrub is a staple for year-round beauty and can attract birds with its berries.", + "ratings": { + "count": 130, + "score": 4.8 + }, + "isFeatured": true + }, + { + "productNumber": "001", + "imageFile": "gardening-tool.jpg", + "skuID": "TLS", + "catNumber": "06", + "productName": "Gardening Tool Set", + "category": "tools", + "price": 34.99, + "altText": "A set of three gardening tools: a trowel, a cultivator, and a transplanter.", + "shortDescription": "A three-piece set of essential gardening tools.", + "longDescription": "This durable gardening tool set includes a trowel for planting, a cultivator for aerating soil, and a transplanter for moving seedlings. Each tool features a comfortable handle and a sturdy, rust-resistant head. It's the perfect starter set for anyone looking to get their hands dirty in the garden.", + "ratings": { + "count": 200, + "score": 4.7 + }, + "isFeatured": false + }, + { + "productNumber": "002", + "imageFile": "gardening-hose.jpg", + "skuID": "TLS", + "catNumber": "06", + "productName": "Gardening Hose", + "category": "tools", + "price": 49.99, + "altText": "A coiled green gardening hose.", + "shortDescription": "A kink-resistant and durable gardening hose.", + "longDescription": "Our premium gardening hose is made from a high-quality, flexible material that resists kinking and tangling. It's lightweight yet incredibly durable, making watering your garden a breeze. The hose comes with solid brass couplings for a secure, leak-free connection to your spigot.", + "ratings": { + "count": 110, + "score": 4.5 + }, + "isFeatured": false + }, + { + "productNumber": "003", + "imageFile": "wheelbarrow.jpg", + "skuID": "TLS", + "catNumber": "06", + "productName": "Wheelbarrow", + "category": "tools", + "price": 99.99, + "altText": "A sturdy single-wheeled wheelbarrow with a metal basin.", + "shortDescription": "A heavy-duty wheelbarrow for all your hauling needs.", + "longDescription": "This robust wheelbarrow is an essential tool for any serious gardener or landscaper. It features a deep, heavy-duty steel basin and a strong single wheel for easy maneuverability, even on uneven terrain. Perfect for transporting soil, mulch, stones, and other heavy materials around your yard.", + "ratings": { + "count": 65, + "score": 4.9 + }, + "isFeatured": false + }, + { + "productNumber": "001", + "imageFile": "apple-tree.jpg", + "skuID": "TRS", + "catNumber": "07", + "productName": "Apple Tree (Honeycrisp)", + "category": "trees", + "price": 45.99, + "altText": "A young Honeycrisp apple tree in a pot.", + "shortDescription": "A young Honeycrisp apple tree (Malus domestica), known for its crisp and sweet fruit.", + "longDescription": "The Honeycrisp apple tree is a popular choice for home orchards, celebrated for its exceptionally crisp texture and deliciously sweet flavor. This semi-dwarf tree is relatively easy to care for and produces a bountiful harvest of apples in the late summer and early fall. Plant it in a sunny spot to ensure a great yield.", + "ratings": { + "count": 140, + "score": 4.8 + }, + "isFeatured": false + }, + { + "productNumber": "002", + "imageFile": "silver-birch.jpg", + "skuID": "TRS", + "catNumber": "07", + "productName": "Silver Birch", + "category": "trees", + "price": 39.99, + "altText": "A young silver birch tree with smooth, white bark.", + "shortDescription": "A graceful silver birch tree, known for its iconic white bark.", + "longDescription": "The silver birch (Betula pendula) is a stunning ornamental tree prized for its peeling, silvery-white bark and elegant, pendulous branches. It provides year-round visual interest and is an excellent choice for a focal point in your yard. This hardy tree is fast-growing and adds a touch of classic beauty to any landscape.", + "ratings": { + "count": 95, + "score": 4.6 + }, + "isFeatured": false + }, + { + "productNumber": "003", + "imageFile": "japanese-maple-tree.jpg", + "skuID": "TRS", + "catNumber": "07", + "productName": "Japanese Maple", + "category": "trees", + "price": 55.99, + "altText": "A young Japanese Maple tree with lobed red and orange leaves.", + "shortDescription": "A Japanese Maple tree, famous for its vibrant fall colors.", + "longDescription": "Japanese Maple trees (Acer palmatum) are a native of landscapes in northeastern Asia, cherished for their beautiful, lobed leaves and spectacular fall foliage. This young tree will grow into a stunning accent to your garden, providing a vibrant backdrop and a brilliant display of reds, oranges, and yellows in the autumn. It's a robust and long-living addition to any property.", + "ratings": { + "count": 220, + "score": 4.9 + }, + "isFeatured": true } -]; \ No newline at end of file +]; + +module.exports = { + INVENTORY +}; \ No newline at end of file diff --git a/src/_data/promotions.js b/src/_data/promotions.js index e924465..6b49833 100644 --- a/src/_data/promotions.js +++ b/src/_data/promotions.js @@ -13,7 +13,7 @@ } */ -const promos = [ +const PROMOS = [ { id: "50-disc", title: "50% Off Discount!", @@ -38,5 +38,5 @@ const promos = [ ]; module.exports = { - promos + PROMOS }; diff --git a/src/_data/testimonials.js b/src/_data/testimonials.js index 80e0076..d571ac1 100644 --- a/src/_data/testimonials.js +++ b/src/_data/testimonials.js @@ -11,7 +11,7 @@ } */ -const testimonials = [ +const TESTIMONIALS = [ { "id": "T01", "clientName": "Caroline N.", @@ -33,5 +33,5 @@ const testimonials = [ ]; module.exports = { - testimonials + TESTIMONIALS }; \ No newline at end of file diff --git a/src/_includes/base.njk b/src/_includes/base.njk index adf05f5..c2f70c7 100644 --- a/src/_includes/base.njk +++ b/src/_includes/base.njk @@ -4,6 +4,9 @@ + {% if seoIndexing === false %} + + {% endif %} {{title}} @@ -35,8 +38,6 @@ {% include "footer.njk" %} - - {% if pageScripts %} {% for script in pageScripts %} diff --git a/src/about.njk b/src/about.njk index a70db1f..dbfb25d 100644 --- a/src/about.njk +++ b/src/about.njk @@ -1,6 +1,7 @@ --- layout: base.njk metaDesc: "Demo eCommerce website by Derek L. Seitz - dlseitz.dev" +seoIndexing: false title: "About - Bloom Valley Nursery Demo" stylesheet: - "/styles/variables.css" diff --git a/src/community.njk b/src/community.njk index 06eafa4..6776943 100644 --- a/src/community.njk +++ b/src/community.njk @@ -1,6 +1,7 @@ --- layout: base.njk metaDesc: "Demo eCommerce website by Derek L. Seitz - dlseitz.dev" +seoIndexing: false title: "Community Events - Bloom Valley Nursery Demo" stylesheet: - "/styles/variables.css" @@ -16,7 +17,7 @@ pageScripts:

Mark Your Calendars!

-
+

Upcoming Events

{% for event in zohoCalendarEvents %} diff --git a/src/credits.njk b/src/credits.njk index acf02d7..d85552f 100644 --- a/src/credits.njk +++ b/src/credits.njk @@ -1,6 +1,7 @@ --- layout: base.njk metaDesc: "Credit & attribution for the contributors of this demo eCommerce website by Derek L. Seitz - dlseitz.dev" +seoIndexing: true title: "Credits & Attribution - Bloom Valley Nursery Demo" stylesheet: - "/styles/variables.css" @@ -25,19 +26,19 @@ pageScripts: