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.
This commit is contained in:
@@ -4,6 +4,9 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="description" content="{{ metaDesc }}">
|
||||
{% if seoIndexing === false %}
|
||||
<meta name="robots" content="noindex">
|
||||
{% endif %}
|
||||
|
||||
<title>{{title}}</title>
|
||||
|
||||
@@ -35,8 +38,6 @@
|
||||
|
||||
{% include "footer.njk" %}
|
||||
|
||||
<!-- <a href="https://www.svgbackgrounds.com/set/free-svg-backgrounds-and-patterns/">Free SVG Backgrounds and Patterns by SVGBackgrounds.com</a> -->
|
||||
|
||||
{% if pageScripts %}
|
||||
{% for script in pageScripts %}
|
||||
<script src="{{ script }}"></script>
|
||||
|
Reference in New Issue
Block a user