Change product url

Tom Rutgers committed Aug 18, 2018
commit 48fa38e20da75bf0b95d295e80db8be35f3963ea
Showing 1 changed file with 1 additions and 5 deletions
config.rb +1 -5
@@ @@ -26,10 +26,6 @@ page '/*.txt', layout: false
page "/partials/*", layout: false
page "/admin/*", layout: false
-
- ignore '/product.html'
- ignore '/product/index.html'
-
activate :blog do |blog|
blog.permalink = "news/{year}/{title}.html"
@@ @@ -43,7 +39,7 @@ end
# https://middlemanapp.com/advanced/dynamic-pages/
data.products.each do |product|
- proxy "/products/#{product[1][:title].parameterize}/index.html", "product.html",
+ proxy "/product/#{product[1][:title].parameterize}/index.html", "product.html",
locals: {product: product[1]},
layout: 'layout',
ignore: true