So I’m using the following in my config.rb to automatically generate pages for a variety of products defined in YAML files:
data.products.custom.each do |type, entry|
proxy "/products/custom/#{type}/index.html", "templates/products/custom/template.html", :locals => { :entry => entry }, :ignore => true
end
Can anyone point me in the right direction as to how would I go further and automate the population of say menus and footers with these pages like this for example;
Home Products
- custom entry 1
- custom entry 2
- custom entry 3
- etc