This is a Jekyll-based website optimized for GitHub Pages with dynamic product management using Liquid templating and YAML data files.
_data/products.ymlspicynoodles/
βββ _config.yml # Jekyll configuration & brand variables
βββ _data/
β βββ products.yml # Product database (single source of truth)
βββ _layouts/
β βββ default.html # Base layout
β βββ product-list.html # Products listing page
β βββ product.html # Individual product page
βββ _includes/ # Reusable components
βββ products/
β βββ index.md # Products listing
β βββ current-hot-spicy-noodles/
β β βββ index.md # Product detail page
β β βββ image.png # Product image
β βββ current-2x-spicy-noodles/
β βββ current-schezwan-instant-noodles/
β βββ current-hot-n-lemon-veggie-soup-noodles/
βββ index.md # Home page
βββ Gemfile # Ruby dependencies
βββ JEKYLL_README.md # This file
gem install bundler)cd spicynoodles
bundle install
bundle exec jekyll serve
Visit http://localhost:4000 to see your site.
_data/products.ymlproducts:
- id: 5
title: "New Product Name"
folder: "new-product-folder"
brandName: "Yashoda Foods"
price: 3.00
heatLevel: 4
available: true
# ... more fields
For a new product:
products/new-product-folder/products/new-product-folder/index.md with front matterproducts/new-product-folder/image.pngEdit _config.yml to change brand colors:
brand:
chili_red: "#D0290A"
deep_chili: "#8C1A04"
# ... more colors
These variables are available in all Liquid templates as site.brand.chili_red, etc.
main branchbundle exec jekyll build
git add _site/
git commit -m "Build site"
git push
Current Hot & Spicy Noodles
1.0
4
Current 2x Spicy Noodles
1.0
5
Current Schezwan Instant Noodles
1.0
3
Current Hot 'n' Lemon Veggie Soup Noodles
1.0
3
Out of Stock
_data/products.yml with product databundle exec jekyll servebundle exec jekyll clean
bundle exec jekyll build --verbose
baseurl in _config.yml matches your repository setting/ not \_data/products.yml syntax (YAML is space-sensitive)bundle exec jekyll clean; bundle exec jekyll build_config.yml with your site info_data/products.yml_layouts/_posts/ (optional)Ready to go live? Push to GitHub and your Jekyll site will automatically deploy! π